@PropertySource加载文件的两种用法以及配置文件加载顺序

第一种:spring 如今我把资源文件的路径放在application.properties里springboot config.path=/home/myservice/config.properties @PropertySource(value = {"file:${config.path}"}, encoding="utf-8") public class MyConfig { @Valu
相关文章
相关标签/搜索