I have created 2 files under src/main/resources:
The first one has properties that take values from env variables, while the latter has fixed values.
According to specific here, I've launched spring boot in such way:
mvn spring-boot:run -Dspring.profiles.active=local
However no effects are produced and application-local.properties seems to be ignored.
Any hints?
Yeah, if you're running with the spring-boot plugin, you have to pass the profile with -Dspring-boot.run.profiles, try
mvn spring-boot:run -Dspring-boot.run.profiles=local
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With