SpringBoot配置文件加载位置

在SpringBoot项目中,配置文件的加载位置是约定好的,因此需要牢记这些加载位置 SpringBoot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件 –file:./config/ –file:./ –classpath:/config/ –classpath:/ 以上优先级是由高到底,高优先级的
相关文章
相关标签/搜索