Spring “spring.profiles.include” overrides

后端 未结 5 1054
感情败类
感情败类 2021-02-01 18:47

My intention is to have two profiles in a spring boot application - development and production one. Development profile is meant just to override some variables of production pr

5条回答
  •  一向
    一向 (楼主)
    2021-02-01 19:28

    According to the spring boot documentation here, spring.profiles.include is used to add the properties from other profiles. It will add the property from other profiles if the property is not present in active one. But if it is present, then it will overwrite and the last one to be applied wins

提交回复
热议问题