我正在尝试在春季批处理中实施重试步骤,如何在不为每个步骤编写此步骤的情况下实施此步骤

问题描述

<batch:job id="retryBatchJob">
<batch:step id="retryStep">
    <batch:tasklet>
        <batch:chunk reader="itemReader" writer="itemWriter"
          processor="retryitemprocessor" commit-interval="10"
          retry-limit="3">
            <batch:retryable-exception-classes>
                <batch:include class="org.apache.http.conn.ConnectTimeoutException"/>
                <batch:include class="org.springframework.dao.DeadlockLoserDataAccessException"/>
            </batch:retryable-exception-classes>
        </batch:chunk>
    </batch:tasklet>
  </batch:step>

如何在不编写每个步骤逻辑的情况下编写以上代码

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)