In this post I will explain how to add header and footer to the destination file created by Spring batch. When Spring batch transfer records from source to destination file in batch, it provides facility through which the programmer can provide header and footer information thathas to added in the destination file. To take advantage…… Continue reading FlatFileHeaderCallback and FlatFileFooterCallback example
Month: July 2018
Custom FieldSetMapper example
In the previous post “Spring Batch Simple Example” we used “BeanWrapperFieldSetMapper” while reading the employee records from the file. The BeanWrapperFieldSetMapper created a newinstance of Employee class for every employee record in the file and set the instance fields. We can have more control on the task performed by BeanWrapperFieldSetMapper by providing a custom implementation…… Continue reading Custom FieldSetMapper example