A very simple example of a Spring Boot application that uses a layered architecture, JWT generation & authentication per SCOPE, automatic local development & testing setup with testcontainers.
- Java 21
- IntelliJ IDEA
- Written using spring boot
- Uses postgreSQL as database
- Uses lombok which needs to be enabled/configured in your editor
- Database migrations done with flyway
- Tests done in JUnit 5 with Testcontainers
- Uses Spring Security with JWT tokens for authentication & authorization
- Maven wrapper is included for building/testing
- On Unix systems use:
./mvnw clean verify - On Windows:
./mvnw.cmd clean verify
- On Unix systems use:
- run
./mvnw fmt:formatbefore pushing - run
./mvnw clean verifybefore pushing