Java spring批处理配置元素不可访问
这是我的作业配置:Java spring批处理配置元素不可访问,java,spring,spring-batch,Java,Spring,Spring Batch,这是我的作业配置: <step id="indelToMorph" next="multiThreaded_createIndividualMorphs_master"> <tasklet> <chunk reader="indelReader" processor="indelProcessor" writer="indelWriter" commit-interval="100"/>
<step id="indelToMorph" next="multiThreaded_createIndividualMorphs_master">
<tasklet>
<chunk reader="indelReader" processor="indelProcessor" writer="indelWriter" commit-interval="100"/>
</tasklet>
</step>
<step id="multiThreaded_createIndividualMorphs_master" next="createMarkers">
<partition step="multiThreaded_createIndividualMorphs" partitioner="partitionMorphAdvancedHandler">
<handler grid-size="10" task-executor="taskAsyncExecutor"/>
</partition>
<listeners>
<listener ref="calculateIndividualMorphListener"/>
</listeners>
</step>
<step id="multiThreaded_createIndividualMorphs">
<tasklet ref="createIndividualMorphsAdvancedTasklet"/>
</step>
<step id="createMarkers">
<tasklet ref="verifyTasklet"/>
</step>
但它说:
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The element [multiThreaded_createIndividualMorphs] is unreachable
我缺少什么?在作业流中,无法访问步骤
多线程\u createIndividualMorphs
,因为没有指向此步骤的下一个配置问题与该步骤的声明有关。为了在分区步骤中使用步骤,需要在作业外定义从属步骤:
<job>
</job>
<step id="multiThreaded_createIndividualMorphs" xmlns="http://www.springframework.org/schema/batch">
<tasklet ref="createIndividualMorphsAdvancedTasklet"/>
</step>
<job>
</job>
<step id="multiThreaded_createIndividualMorphs" xmlns="http://www.springframework.org/schema/batch">
<tasklet ref="createIndividualMorphsAdvancedTasklet"/>
</step>