Updated step references

This commit is contained in:
Michael Minella
2015-11-25 12:28:08 -06:00
parent d81c0d9262
commit f14e3fd10f

View File

@@ -291,8 +291,8 @@ public class AppConfig {
private StepBuilderFactory steps;
@Bean
public Job job() {
return jobs.get("myJob").start(step1()).next(step2()).build();
public Job job(@Qualifier("step1") Step step1, @Qualifier("step2") Step step2) {
return jobs.get("myJob").start(step1).next(step2).build();
}
@Bean