springboot project read different profiles according to different developers IDEA

  1. IDEA start the project
    open project configuration file, modify the Program argument to --spring.profiles.active=developerName
    start the project, you can

 

 

  1. Command line to start the project
java -jar xxx.jar --spring.profiles.active=xxxx

  

Guess you like

Origin www.cnblogs.com/matd/p/12024395.html