Spring Batch — Writing to Multiple Destinations

In this example, I will show you how to write data to multiple destinations and how can we write data into JSON and XML. 

In this example, I am using MySQL, however, you can use any database of your choice. Please make sure to create the equivalent schema and data into that DB.