i have application.yml
,application-dev.yml
andapplication-dev.yml
mvn spring-boot:run
Use "-Dspring-boot.run.profiles=foo,local" in Intellij IDEA. It's working. Its sets 2 profiles "foo and local".
Verified with boot version "2.3.2.RELEASE" & Intellij IDEA CE 2019.3.
org.springframework.boot
spring-boot-maven-plugin
Setting profile with "mvn spring-boot:run"
Setting environment variable