假设我有一个像这样配置的简单tasklet:

<batch:tasklet>
  <batch:chunk reader="myItemReader" writer="myItemWriter" commit-interval="20" retry-limit="15" skip-limit="10">
    <batch:retryable-exception-classes>
      <batch:include class="de.codecentric.MyRetryableException" />
    </batch:retryable-exception-classes>
    <batch:skippable-exception-classes>
      <batch:include class="de.codecentric.MySkippableException" />
    </batch:skippable-exception-classes>
  </batch:chunk>
</batch:tasklet>

当抛出MyRetryableException时,我重试了15次,但最后我得到 org.springframework.retry.RetryException: Non-skippable exception in recoverer while processing; nested exception is 然后该作业终止 .

我想 skip the item 如果15次重试没有帮助,而不是完全失败的工作 . 我应该只将RetryException添加到skippable-exception-classes列表中吗?