Cannot disable Spring Cloud Config via spring.cloud.config.enabled:false

后端 未结 5 1564
无人及你
无人及你 2021-01-04 03:51

Let me preface this by saying that I\'m not using Spring Cloud Config directly, it is transitive via Spring Cloud Hystrix starter.

When only using @EnableHystr

5条回答
  •  一个人的身影
    2021-01-04 04:38

    The config server is needed during bootstrap, and that's where the parent property sources come from. It looks like all you need to do is move your spring.cloud.config.enabled property to bootstrap.yml (or .properties).

提交回复
热议问题