I tried:
mvn -Dspring.profiles.active=dev spring-boot:run
but it does not affect my default configuration. I\'ve googled a little and found:
I also tried many ways. But in the end, what worked for me was setting them in pom.xml as mentioned in the documentation.
... ... ... org.springframework.boot spring-boot-maven-plugin 2.2.2.RELEASE 5000 Some Text ... ... ... ...