application-context.xml
文件默認使用的配置爲 application.properties
當需要引入其他配置文件時,需要使用
<context:property-placeholder location="classpath:bootstrap.yml"/>
參考鏈接:
Spring Boot 加載XML配置
深入Spring Boot: 那些注入不了的 Spring 佔位符(${} 表達式)
springboot乾貨——(八)springboot引入外部xml配置文件
https://blog.csdn.net/VcStrong/article/details/81223627