@EnableBatchProcessing:自动帮你补全一些重要的有关batch工作时的属性依赖如:
@Autowired
public JobBuilderFactory jobBuilderFactory; @Autowired public StepBuilderFactory stepBuilderFactory;
@EnableBatchProcessing:自动帮你补全一些重要的有关batch工作时的属性依赖如:
@Autowired
public JobBuilderFactory jobBuilderFactory; @Autowired public StepBuilderFactory stepBuilderFactory;
转载于:https://www.cnblogs.com/codetime/p/7002215.html