Spring 批次 2.2.7 中的 StepExecutionListener 缺少 onErrorInStep() 方法
StepExecutionListener is missing onErrorInStep() method in Spring Batch 2.2.7
我正在从 Spring Batch 1.1.4 迁移到 Spring Batch 2.2.7,我有一个 StepExecutionListener
implementation which has onErrorInStep
implemented. This method was no longer available in StepExecutionListener
of Spring Batch 2.2.7。
我需要使用其他 interface/classes 吗?
您还可以很好地管理来自 StepExecutionListener's afterStep()
方法的异常,如下所示:
ExitStatus afterStep(StepExecution stepExecution)
{
List exceptions = stepExecution.getFailureExceptions();
.......
}
我正在从 Spring Batch 1.1.4 迁移到 Spring Batch 2.2.7,我有一个 StepExecutionListener
implementation which has onErrorInStep
implemented. This method was no longer available in StepExecutionListener
of Spring Batch 2.2.7。
我需要使用其他 interface/classes 吗?
您还可以很好地管理来自 StepExecutionListener's afterStep()
方法的异常,如下所示:
ExitStatus afterStep(StepExecution stepExecution)
{
List exceptions = stepExecution.getFailureExceptions();
.......
}