简体   繁体   English

Spring Batch Write Exception记录单独的文件

[英]Spring Batch Write Exception records separate file

I have Spring Batch read records form XML file and write in to csv file.I need example for, if suppose exception occurred for reading i need to write those records in separate file. 我有Spring Batch从XML文件读取记录并写入csv文件。我需要示例,如果假设读取发生异常,则需要将这些记录写在单独的文件中。

I need any example for writing Exception records with one file along with processed records in another file. 我需要任何示例来将一个文件的异常记录与已处理的记录写入另一个文件。

can anyone help on this???? 有人可以帮忙吗????

You can implement ItemListenerSupport . 您可以实现ItemListenerSupport You can find some useful examples here 您可以在此处找到一些有用的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM