From 32e5af00b1c273e4007c6b7fd5ef593453d97b31 Mon Sep 17 00:00:00 2001 From: Seungrae Date: Wed, 24 Apr 2024 18:37:56 +0900 Subject: [PATCH] Fix code sample that uses deprecated StepBuilderFactory Issue #4582 --- spring-batch-docs/modules/ROOT/pages/scalability.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-batch-docs/modules/ROOT/pages/scalability.adoc b/spring-batch-docs/modules/ROOT/pages/scalability.adoc index 5836fddf56..b00353c4e6 100644 --- a/spring-batch-docs/modules/ROOT/pages/scalability.adoc +++ b/spring-batch-docs/modules/ROOT/pages/scalability.adoc @@ -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) .partitioner("step1", partitioner()) .step(step1()) .gridSize(10)