From fae6c5b0967e0434ff73890cd192c8b7d9104365 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 27 Oct 2020 13:13:37 +0100 Subject: [PATCH] Update documentation about step scope usage Issue #857 --- spring-batch-docs/asciidoc/step.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-batch-docs/asciidoc/step.adoc b/spring-batch-docs/asciidoc/step.adoc index ff02d3941..b20764ada 100644 --- a/spring-batch-docs/asciidoc/step.adoc +++ b/spring-batch-docs/asciidoc/step.adoc @@ -2311,7 +2311,10 @@ public FlatFileItemReader flatFileItemReader(@Value("#{stepExecutionContext['inp [NOTE] ==== Any bean that uses late-binding must be declared with scope="step". See -<> for more information. +<> for more information. It should be noted +that a `Step` bean should not be step-scoped. If late-binding is needed in a step +definition, the components of that step (ie tasklet, item reader/writer, etc) +are the ones that should be scoped instead. ==== [NOTE]