springBoot:application.properties与application.yml的区别?
原创qq612f44db80eb0 博主文章分类:springBoot ©著作权
文章标签 springBoot 优先级 springboot 文章分类 代码人生
-
SpringBoot配置文件application.properties和application.yml
一、application配置优先级1.文件或路径的优先级:4>3>2>1,4的属性会覆盖其他的2.properties的属性会覆盖yml的属性二、bootstrap和application的加载顺序网上有些说法是:bootstrap.yml 用来程序引导时执行,应用于更加早期配置信息读取。可以理解成系统级别的一些参数配置,这些参数一般是不会变动的。一旦bootStrap.yml 被加载,则内容不会被覆盖。ps:会不会覆盖,在自己的项目中进行实测。经过实际测试
spring boot java spring bootstrap 优先级