我有一个弹簧调度程序批量配置成功,还有一个弹簧缩放批量配置成功。如何使用扩展批处理配置调度程序批处理? 目前无法访问step1: 线程" main"中的例外情况org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置问题:元素[step1]无法访问 违规资源:类路径资源[applicationContext.xml]
谢谢!
<bean id="targetSync" class="org.jscsi.batch.TargetSync" />
<batch:job id="targetSyncJob">
<batch:step id="step0">
<batch:job ref="partitionJob"/>
</batch:step>
<batch:step id="step1">
<batch:tasklet ref="targetSync" />
</batch:step>
</batch:job>
... targetSync ...
<!-- Scaling Spring Batch -->
<bean id="blockJscsiPartitioner" class="org.jscsi.batch.BlockJscsiPartitioner"
scope="step" />
<bean id="taskExecutorPartition" class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
<job id="partitionJob" xmlns="http://www.springframework.org/schema/batch">
<step id="masterStep">
<partition step="slave" partitioner="blockJscsiPartitioner">
<handler grid-size="10" task-executor="taskExecutorPartition" />
</partition>
</step>
</job>
<step id="slave" xmlns="http://www.springframework.org/schema/batch">
<tasklet ref="blocksProcessor" />
</step>
<bean id="blocksProcessor" class="org.jscsi.processor.BlocksProcessor" />