Spring Batch – CSV to MySQL Database

This tutorial will show you how to read a csv file data and write to MySQL database with some modification. You can read the tutorial Spring Batch to read what is Spring Batch and what are the usages of Spring Batch. In my previous tutorial I have shown how to read csv file and write to xml file using spring batch.

What we will do

We’ll build a service that imports data from a CSV file, transforms it with custom code, and stores the final results in MySQL Database.



Maven 3.2.1

JDK 1.8

Spring Batch and MySQL connector dependencies in pom.xml file Continue reading “Spring Batch – CSV to MySQL Database”