I have the application.yml, application-dev.yml and application-dev.yml files
- I'm using the maven command
mvn spring-boot:run -Dspring.profiles.active=devit doesn't work and I can not choose thedevprofile usingmvn spring-boot:run. How do I choose it? - The documentation says
java -jar XXX.jar --spring.profiles.active=devworks, and I tried-Dspring.profiles.active=devbut it does not work. And in my project, I usejava -jar XXX.jarit runs, but if I usejava -jar XXX.jar --spring.profiles.active=devto choosedevprofile, console print so many logs and warns that I never see usedjava -jar XXX.jar,and tell meAPPLICATION FAILED TO START
So, how to solve these two problems?
Thanks.

