What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?

前端 未结 8 794
慢半拍i
慢半拍i 2020-12-02 03:13

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot? In logging.config case, the application works different.

8条回答
  •  隐瞒了意图╮
    2020-12-02 04:06

    Bootstrap.yml is the first file loaded when you start spring boot application and application.property is loaded when application starts. So, you keep, may be your config server's credentials etc., in bootstrap.yml which is required during loading application and then in application.properties you keep may be database URL etc.

提交回复
热议问题