Spring Batch : Field or property 'stepExecutionContext' cannot be found

后端 未结 1 999
臣服心动
臣服心动 2021-01-27 05:30

I have the following spring batch job configuration. There is a single reader which then passes details to a composite writer which has two specific writers. Both writers share

相关标签:
1条回答
  • 2021-01-27 05:53

    You can access the stepExecutionContext only within a bean defined in the scope="step". Change your bean definition to

    <bean id="stagingLoadWriter" scope="step" class="a.b.c.StagingLoadWriter" parent="abstractStagingWriter" />
    
    <bean id="stagingPolicyWriter" scope="step" class="a.b.c.StagingPolicyWriter" parent="abstractStagingWriter"/>
    
    0 讨论(0)
提交回复
热议问题