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

后端 未结 5 1521
无人及你
无人及你 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:42

    Regarding the discovery service followup (looks like no other posts on that), setting spring.cloud.config.discovery.enabled: false worked for me, but only if it was set in bootstrap(yml/properties) and if I removed the @EnableDiscoveryClient annotation from my Application class. I guess this means one cannot use that annotation for any service where discovery will not be used at times.

提交回复
热议问题