SpringBoot Cmd runs the Jar file to specify the active file command as follows

SpringBoot Cmd runs the Jar file to specify the active file command as follows

SpringBoot command line specifies the configuration file to run

 

================================

©Copyright Sweet Potato Yao March 22, 2018

http://fanshuyao.iteye.com/

 

java -jar -Dspring.profiles.active=zprod lqyspringboot-0.0.1-SNAPSHOT.jar

 or

java -jar  lqyspringboot-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev

 

 

 

================================

©Copyright Sweet Potato Yao March 22, 2018

http://fanshuyao.iteye.com/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326168810&siteId=291194637