I have a requirement in Java (Spring) to read data from an Excel spreadsheet and store it in MySQL database. More specifically, I have to read one row of data from an Excel spreadsheet every 5 minutes and store it to a MySQL database.
Can anyone help me how to do this?
As Mathias Schwarz wrote:
You can read an Excel file in Java using the Apache POI library: http://poi.apache.org/
There are some code samples on their howto page which will tell you how to read an Excel file: http://poi.apache.org/spreadsheet/how-to.html
To store the data you can use the JDBC driver for MySQL. You can get the connector here: http://www.mysql.com/products/connector/