【发布时间】:2016-05-13 09:55:01
【问题描述】:
<job id="pullPurgeProcessStoreFiles" xmlns="http://www.springframework.org/schema/batch">
<bean id="PullFilesTasklet" class="com.example.PullFilesTasklet" />
<step id="pullFiles" next="validation" >
<tasklet ref="PullFilesTasklet">
<skippable-exception-classes>
<include class="java.io.FileNotFoundException"/>
</skippable-exception-classes>
</tasklet>
</step>
</job>
低于错误:
发现以元素 skippable-exception-classes 开头的无效内容。
在研究中我发现skippable-exception-classes 可以在块中使用。但我需要通过 ref tasklet 实现相同的目标。
【问题讨论】:
-
通过 ref tasklet 我可以通过哪种方式实现相同的目标?
标签: java spring spring-batch