You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using following command will activate dev profile, remember activatedProperties value should match in the following command after -D like -Ddev, -Dtest or -Dprod
$ mvn clean package -Ddev
$ mvn test -Dtest
Create application.properties or application.yml file with the following content
spring:
profiles:
active: @activatedProperties@
Create application-dev.yml, application-test.yml and application-prod.yml
When you run the build, the Maven Resources Plugin will replace the activatedProperties placeholder in application.properties with the property from the currently active Maven profile, which will select spring boot profile
yes sorry, the tab spaces didnt show up.. but i did with tab spaces.
turns out we need to single quote the @activatedProperties@ in case of using application.yml
this worked for me:
Step 3:
im yml file we cannot write like that should it be:
spring:
profiles:
active: @activatedProperties@
still it does not work