Spring batch doesn't execute flow in parallel mode. What am I doing wrong?
<split id="preprocessingStep" next="decompress">
<flow>
<step id="step11" next="step22">
<tasklet ref="my1" />
</step>
<step id="step22">
<tasklet ref="my2" />
</step>
</flow>
<flow>
<step id="step33">
<tasklet ref="my3" />
</step>
</flow>
</split>
I think it is because you use one-thread task executor. Try to add
<bean id="taskExecutor" class="org.springframework.core.task.SimpleAsyncTaskExecutor"
and change line to
<split id="preprocessingStep" task-executor="taskExecutor" next="decompress">
to your config.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.