1

Is it possible to disable the service discovery in cloud consul but still keep the registration.

Similar to how one can disable the auto registration but keeps discovery like @EnableDiscoveryClient(autoRegisters=false)

s7vr
  • 73,656
  • 11
  • 106
  • 127

1 Answers1

1

spring.cloud.consul.discovery.enabled=false will disable the consul DiscoveryClient. There is no java/annotation way to do it.

spencergibb
  • 24,471
  • 6
  • 69
  • 75