Skip to content

Commit b020da4

Browse files
Seungpangfmbenhassine
authored andcommitted
Fix code sample that uses deprecated StepBuilderFactory
Issue #4582
1 parent b812492 commit b020da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-docs/modules/ROOT/pages/scalability.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ configuration:
346346
[source, java]
347347
----
348348
@Bean
349-
public Step step1Manager() {
350-
return stepBuilderFactory.get("step1.manager")
349+
public Step step1Manager(JobRepository jobRepository) {
350+
return new StepBuilder("step1.manager", jobRepository)
351351
.<String, String>partitioner("step1", partitioner())
352352
.step(step1())
353353
.gridSize(10)

0 commit comments

Comments
 (0)