您好我有要求讀取(n數)的平面文件。在文件讀取期間,如果收到FileParseException:來自閱讀器,則停止當前文件讀取並安全出來並處理下一個文件並繼續執行作業。目前我有這個XML配置,但我不想這樣做,因爲我沒有真正的跳過限制數。有沒有辦法處理這種情況可能會使用ItemReaderListener?跳過FlatFileParseException或彈簧批處理中的特定異常
<chunk reader="flatFileItemReader" writer="itemWriter"
commit-interval="10" skip-limit="2">
<skippable-exception-classes>
<include class="org.springframework.batch.item.file.FlatFileParseException"/>
</skippable-exception-classes>
的可能的複製[如何跳過空白行CSV使用FlatFileItemReader和塊](http://stackoverflow.com/questions/29673524/how-to-skip-blank-lines-in-csv-using-flatfileitemreader-and-chunks) –