Fix code sample that uses deprecated StepBuilderFactory

Issue #4582
This commit is contained in:
Seungrae
2024-04-24 18:37:56 +09:00
committed by Mahmoud Ben Hassine
parent b812492798
commit b020da4766

View File

@@ -346,8 +346,8 @@ configuration:
[source, java]
----
@Bean
public Step step1Manager() {
return stepBuilderFactory.get("step1.manager")
public Step step1Manager(JobRepository jobRepository) {
return new StepBuilder("step1.manager", jobRepository)
.<String, String>partitioner("step1", partitioner())
.step(step1())
.gridSize(10)