Specify the development and local profile on startup.
- IDE
-
Add the
-Dspring.profiles.active=development,localJVM property. - Maven
-
When using
spring-boot:runspecify the-Dspring-boot.run.profiles=development,localJVM property.
mvn spring-boot:run -Dspring-boot.run.profiles=development,localMind the difference between -Dspring.profiles.active=… and -Dspring-boot.run.profiles=…