QuickDevGuide

Home › Spring Boot

Build & Deploy — Spring Boot

mvn clean package creates an executable JAR with embedded Tomcat. Run with java -jar target/app.jar. For Docker, use multi-stage builds with a JRE-only runtime image. Spring Profiles Spring profiles (application-dev.yml, application-prod.yml) manage environment-specific configuration. Activate with --spring.profiles.active=prod.

Key Takeaways