SpringBoot打成jar后运行外部的配置文件
时间:2021-05-08 16:25:34
收藏:0
阅读:53
重新加载配置文件:
java -jar spring-boot-02-config-02-0.0.1-SNAPSHOT.jar --spring.config.additional-location=E:/application.properties
注意=后面不能有空格,否则配置文件会加载不了
原文:https://www.cnblogs.com/nlbz/p/14744411.html
评论(0)