springboot启动加载顺序 springboot yml启动顺序?

springboot yml启动顺序?配置文件优先级从高到低文件:./config/-最高优先级(在项目根路径下配置)文件:/-优先级2-(在项目根下)classpath/config/-Priori

springboot yml启动顺序?

配置文件优先级从高到低文件:./config/-最高优先级(在项目根路径下配置)文件:/-优先级2-(在项目根下)

classpath/config/-Priority 3(在项目资源/config下)

classpath:/-Priority 4(在项目资源根下)