@PropertySource加載文件的兩種用法以及配置文件加載順序

第一種:spring 如今我把資源文件的路徑放在application.properties裏springboot config.path=/home/myservice/config.properties @PropertySource(value = {"file:${config.path}"}, encoding="utf-8") public class MyConfig { @Valu
相關文章
相關標籤/搜索