Springboot的核心配置文件 作者:哇塞大嘴好帅(我爱大嘴网)
Springboot的核心配置文件 作者:哇塞大嘴好帅(我爱大嘴网) ZuiBlog
Springboot的核心配置文件 作者:哇塞大嘴好帥(我爱大嘴网) ZuiBlog
Springboot的核心文件有application and bootstrap他们都使用yml 和 properties格式, yml采用的是缩进格式,不支持**@PropertySource**注解导入配置
1.Application
使用场景:
application进行springboot自动化配置文件
2.bootstrap
使用场景:
使用Springboot Cloud注册中心的时候 需要在bootstrap配置文件种添加链接来连接配置中心属性来加载配置信息
一些不固定的不能被覆盖的属性
一些加密/解密的场景