弹簧批次集成1.2.2与弹簧批次2.2.2不兼容

san*_*eep 3 java spring spring-integration spring-batch

我有一个春季批量项目,它正在运行良好的旧版本:

  • 春季3.1.2.RELEASE
  • 春季批次2.1.9.RELEASE
  • spring-batch-integration 1.2.0.RELEASE

当我升级所有依赖项新版本的版本时,它停止工作:

  • 春天3.2.5.RELEASE
  • 春季批次2.2.2.RELEASE
  • spring-batch-integration 1.2.2.RELEASE

应用程序日志说:

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/batch/retry/RetryException
Run Code Online (Sandbox Code Playgroud)

从2.2.0开始,重试功能从Spring Batch中撤出.它现在是Spring Retry新库的一部分.但是spring-batch-integration是指较旧的spring-batch并导致此错误.class ChunkProcessorChunkHandler有import语句import org.springframework.batch.retry.RetryException;

我想知道如何克服这个错误?是否有任何新版本的spring-batch-integration的计划.

Mic*_*lla 6

我们目前有1.3.0的里程碑可用,并且应该与2.2.x分支一起使用.我们仍在研究1.3.0 GA版本的时间安排.