springboot配置文件加载顺序

配置文件覆盖顺序:(加载顺序从1->9,但在之前会确定用哪个activeProfiles,覆盖顺序1-9) (1)默认配置:defaultProfiles(默认配置,springboot源代码提供的) (2)属性配置:propertySources(写在代码中注解上的) (3)Servlet初始化参
posted @ 2018-01-23 10:05  chendeming  阅读(734)  评论(0编辑  收藏  举报