Skip to content

Commit

Permalink
Fix code sample that uses deprecated StepBuilderFactory
Browse files Browse the repository at this point in the history
Backported from b020da4

Issue #4582
  • Loading branch information
fmbenhassine committed Apr 25, 2024
1 parent 929a551 commit a1ce07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spring-batch-docs/src/main/asciidoc/scalability.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ configuration:
[source, java, role="javaContent"]
----
@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 a1ce07e

Please sign in to comment.