SpringBoot启动时加载本地配置文件
警告
本文最后更新于 2021-06-11 14:31,文中内容可能已过时。
使用application-test.yml,
java -Dspring.profiles.active=test -jar xxx.jar
java -Dspring.config.location=./application.yml -jar xxx.jar
请我喝杯水


java -Dspring.profiles.active=test -jar xxx.jar
java -Dspring.config.location=./application.yml -jar xxx.jar