Skip to content

Commit a1ce07e

Browse files
committed
Fix code sample that uses deprecated StepBuilderFactory
Backported from b020da4 Issue #4582
1 parent 929a551 commit a1ce07e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-docs/src/main/asciidoc/scalability.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ configuration:
338338
[source, java, role="javaContent"]
339339
----
340340
@Bean
341-
public Step step1Manager() {
342-
return stepBuilderFactory.get("step1.manager")
341+
public Step step1Manager(JobRepository jobRepository) {
342+
return new StepBuilder("step1.manager", jobRepository)
343343
.<String, String>partitioner("step1", partitioner())
344344
.step(step1())
345345
.gridSize(10)

0 commit comments

Comments
 (0)