bootstrap.yml与application.yml

bootstrap.yml(bootstrap.properties)用来在程序引导时执行,应用于更加早期配置信息读取,如可以使用来配置application.yml中使用到参数等;
application.yml(application.properties) 应用程序特有配置信息,可以用来配置后续各个模块中需使用的公共参数等。

bootstrap.yml 先于 application.yml 加载

当然也可以全部使用bootstrap

猜你喜欢

转载自blog.csdn.net/weixin_43167662/article/details/130054859