1
我正在从Spring批处理1.1.4迁移到Spring批处理2.2.7,并且我有一个执行onErrorInStep
的StepExecutionListener
实现。该方法在Spring批次2.2.7的StepExecutionListener
中不再可用。StepExecutionListener在Spring批处理2.2.7中缺少onErrorInStep()方法
我需要使用任何其他接口/类吗?
我正在从Spring批处理1.1.4迁移到Spring批处理2.2.7,并且我有一个执行onErrorInStep
的StepExecutionListener
实现。该方法在Spring批次2.2.7的StepExecutionListener
中不再可用。StepExecutionListener在Spring批处理2.2.7中缺少onErrorInStep()方法
我需要使用任何其他接口/类吗?
你也可以很好地管理从StepExecutionListener's afterStep()
方法例外情况,如下图所示:
ExitStatus afterStep(StepExecution stepExecution)
{
List exceptions = stepExecution.getFailureExceptions();
.......
}