【筆記】 Spring Boot [ 3 ] 之命令列啟動方式和啟用不同的配置檔案
阿新 • • 發佈:2019-01-08
命令列啟動方式
在springboot專案的根目錄下執行
mvn spring-boot:run
或
mvn install
cd target
java -jar xxx.jar
啟用不同的配置檔案
在springboot專案的根目錄下執行
Java -jar target/xxx.jar --spring.profiles.active=prod