简体   繁体   English

Spring Batch不会在并行模式下执行流。

[英]Spring batch doesn't execute flow in parallel mode.

Spring batch doesn't execute flow in parallel mode. Spring Batch不会在并行模式下执行流。 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. 到您的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM