A very simple project to start with Spring Boot, including:
- Rest Api with cutom error handler
- Test based Api documentation with Restdocs and Asciidoctor
- Flyway schema migration
- Integration testing
mvn clean package -DskipTests
docker-compose build
docker-compose up
Start the database container:
docker-compose run --service-ports postgres_demo
Start the application with a local profile:
java -Dspring.profiles.active=local -jar target/demo-0.0.1-SNAPSHOT.jar
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Data JPA
- Rest Repositories
The following guides illustrate how to use some features concretely: