[英]Spring batch doesn't execute flow in parallel mode.
Spring Batch不會在並行模式下執行流。 我究竟做錯了什么?
<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>
我認為這是因為您使用了單線程任務執行器。 嘗試添加
<bean id="taskExecutor" class="org.springframework.core.task.SimpleAsyncTaskExecutor"
並將行更改為
<split id="preprocessingStep" task-executor="taskExecutor" next="decompress">
到您的配置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.