Spring Boot 3 app that streams huge XLSX files with low memory and inserts into MySQL using JDBC batches.
- Create table: see
src/main/resources/schema-export.sql - Configure DB in
src/main/resources/application.yml - Put
.xlsxfiles into the folder given byapp.input-dir - Run:
mvn -q -DskipTests spring-boot:run- Uses
fastexcel-reader(SAX) → tiny memory footprint - Adjust
app.batch-size(2000–5000 good start) - Keep
rewriteBatchedStatements=truein JDBC URL for MySQL