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