206207208209210211212213
@Autowired private StepBuilderFactory steps; @Bean public Job beansConfigurerJob() throws Exception { SimpleJobBuilder builder = jobs.get("beans").start(step1()); return builder.build(); }
120121122123124125126127
@Autowired private StepBuilderFactory steps; @Bean public Job testJob() throws Exception { SimpleJobBuilder builder = jobs.get("test").start(step1()).next(step2()); return builder.build(); }
156157158159160161162163
@Autowired private StepBuilderFactory steps; @Bean public Job vanillaJob() throws Exception { SimpleJobBuilder builder = jobs.get("vanilla").start(step3()); return builder.build(); }
112113114115116117118119
155156157158159160161162
@Autowired private Tasklet tasklet; @Bean public Job anotherJob() throws Exception { SimpleJobBuilder builder = jobs.get("another").start(step3()); return builder.build(); }
175176177178179180181182
@Autowired private SimpleBatchConfiguration jobs; @Bean public Job testConfigererJob() throws Exception { SimpleJobBuilder builder = jobs.jobBuilders().get("configurer").start(step1()); return builder.build(); }