Accompanying demonstration project for Migrating to Spring Boot 2 and Webflux meetup talk.
Compare tags 1.5.x
, 2.0.x
and 2.0.x-webflux
to see the changes.
- Language: Java
- Application Server (Servlet Container): Apache Tomcat
- Application and Web Framework: Spring Boot
- Code Generation: Project Lombok
- Build: Gradle
- Code Formatting: Spotless with Google Style Guide
- Containerization: Docker
The recommended gradle wrapper is used to build the application and is included in the source code.
- With Gradle:
./gradlew build
- With Docker:
sudo docker build -t trevorgowing/spring-boot-demo:X.X.X .
- With Docker Compose:
sudo docker-compose build spring-boot-demo
- With Gradle:
./gradlew bootrun
(will build if not already built) - With Docker:
sudo docker run trevorgowing/spring-boot-demo:X.X.X
(needs to be built explicitly) - With Docker Compose:
sudo docker-compose --build up
- With Bash Script:
./start.sh
(runs docker-compose internally)
- With Gradle:
./gradlew test