Spring Boot 记录

配置文件优先级

./config/  ./  classpath:config/  classpath:

关于 arch-utils-wechat WechatConf.class.getResourceAsStream("/wechat/wechat.properties") ,ide 读的是 resources/wechat/wechat .properties,java -jar 运行读的是 arch-utils-wechat.jar 中 classpath:wechat/wechat.properties

原文地址:https://www.cnblogs.com/zhiqsyr/p/10001135.html