Spring Batch重复跑批
Spring Batch_Configuring a Step for Restart
当一个普通的Spring
Batch 当状态为complete
,默认是不能再重跑的。
如何使一个Spring
Batch 能够被重跑
restart?
第一:job应该要配置 restartable="true" 系统默认false
第二:allow-start-if-complete="true" 系统默认false
第三:start-limit="3" 最大重跑次数 可以选择不配置 默认值是Integer.MAX_VALUE.