This Spring Batch application create new values to the Postgres database. After that getting this values from database and create a simple .csv file and uploads its contents to another table.
The app database is running in the Docker container.
Pre-built commands help launch the application database with Flyway.
./start.sh
./stop.sh
- Java 11
- Docker
Also, a Maven wrapper (mvnw) is automatically included so that you don't have to install Maven to run this project, and the Docker takes care of the Postgres.
-
SpringBatchDojoApplication
It starts the app in the local machine. -
SpringBatchDojoApplicationTests
It starts the test.
- Start only DB in Docker
The configuration has been created for Intellij users, this will only help to start the database if the application is no running but the image has not been deleted yet.
- Creating a Batch Service
- Running Spring Boot with PostgreSQL in Docker Compose
- Testing a Spring Batch Job
For further reference, please consider the following sections: