SpringBoot_配置文件

配置文件加载位置 springboot启动会扫描以下位置的application.properties或者application.yml文件作为Springboot的默认配置文件 file: ./config/ file: ./ classpath:/config/ classpath:/ 上述四个位置的配置文件如下图所示。 注意 以上是按照优先级从高到低的顺序,所有位置的文件都会加载,高优先级配
相关文章
相关标签/搜索