Example of Spring Data implementation with Liquibase
The application is designed as a service with no user interface and no API.
Once the application is started, the migration scripts for the database are executed and the application terminates.
Java
- version17
Maven
- for building the applicationSpring Boot
- version3.2.5
Liquibase
- for manage changes to the databaseSpring Boot Maven Plugin
- for create Docker-ImageDocker-Compose
- infrastructurePostgres
- database
spring-data-with-liquibase-in-action/
├── src/main/
| ├── java/com/dudko/example/ # spring boot application
| ├── resources/
| | ├── changelog/
| | | ├── migrations/ # migration scripts
| | | ├── rollbacks/ # rollback scripts
| | | ├── db.schema.migrations.yml # change sets
| | ├── application.yml # config for Spring Boot
| | ├── liquibase.properties # config for Liquibase
| | ├── master-changelog.yml
├── pom.xml # artifact of Maven
├── compose.yml # docker-compose file
docker-compose -f compose.yml up
Anatoly Dudko