s7vr
s7vr

Reputation: 75964

Is there a flag to disable discovery in spring cloud consul?

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)

Upvotes: 1

Views: 1084

Answers (1)

spencergibb
spencergibb

Reputation: 25167

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

Upvotes: 1

Related Questions