[英]How to get the exit message of a step in Spring Batch?
從Spring Batch參考中可以看到,表BATCH_STEP_EXECUTION
的EXIT_MESSAGE
。 但是在相應的Java類StepExecution
我找不到該字段的吸氣劑。
我在數據庫中看到堆棧跟蹤存儲在此列中,我想顯示它們。 我如何獲得這些堆棧跟蹤?
來自org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
truncateExitDescription(stepExecution.getExitStatus()。getExitDescription())
實現Tasklet的類也可以實現StepExecutionListener 。 您可以實現一個afterStep方法,以使StepExecution可用。 從那里可以使用stepExecution.getExitStatus().getExitDescription()
來獲取描述。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.