Spring Cloud Config Server Priority of Environment Variables

前端 未结 1 1667
陌清茗
陌清茗 2021-02-04 12:34

I have a question regarding the priority of environment variables when working with spring cloud config server

In my service I have a local properties file applica

1条回答
  •  迷失自我
    2021-02-04 13:04

    define following properties in git repo (as a source for config-server) [for given profile]: spring.cloud.config: overrideSystemProperties: false overrideNone: true

    keep in mind properties (especially overrideSystemProperties & overrideNone) in bootsrap.yml are overriden by those from config-server by default

    0 讨论(0)
提交回复
热议问题