Skip to content

Commit fae6c5b

Browse files
committed
Update documentation about step scope usage
Issue #857
1 parent 559be29 commit fae6c5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-batch-docs/asciidoc/step.adoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,10 @@ public FlatFileItemReader flatFileItemReader(@Value("#{stepExecutionContext['inp
23112311
[NOTE]
23122312
====
23132313
Any bean that uses late-binding must be declared with scope="step". See
2314-
<<step.adoc#step-scope,Step Scope>> for more information.
2314+
<<step.adoc#step-scope,Step Scope>> for more information. It should be noted
2315+
that a `Step` bean should not be step-scoped. If late-binding is needed in a step
2316+
definition, the components of that step (ie tasklet, item reader/writer, etc)
2317+
are the ones that should be scoped instead.
23152318
====
23162319

23172320
[NOTE]

0 commit comments

Comments
 (0)