Spring Boot 4 · Configuration

Run with a profile

Activate application-prod.properties for one run.

java -jar app.jar --spring.profiles.active=prod

Official Spring Boot 4 documentation

More configuration commands

All configuration commands · Spring Boot 4 cheatsheet

Was this page helpful?