【发布时间】:2014-12-16 16:41:00
【问题描述】:
如果发生某种异常,我正在尝试使作业没有BatchStatus.FAILED。
文档谈到在<chunk> 中使用skippable-exception-classes,但我怎样才能在TaskletStep 中做同样的事情?以下代码不起作用:
<batch:step id="sendEmailStep">
<batch:tasklet>
<bean class="com.myproject.SendEmail" scope="step" autowire="byType">
<batch:skippable-exception-classes>
<batch:include class="org.springframework.mail.MailException" />
</batch:skippable-exception-classes>
</bean>
</batch:tasklet>
</batch:step>
【问题讨论】:
标签: java spring spring-batch