Skip to content

Commit

Permalink
Fix code sample that uses deprecated StepBuilderFactory
Browse files Browse the repository at this point in the history
Issue #4582
  • Loading branch information
Seungpang authored and fmbenhassine committed Apr 25, 2024
1 parent cc56744 commit 32e5af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spring-batch-docs/modules/ROOT/pages/scalability.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32e5af0

Please sign in to comment.