在春云领事中是否有禁用发现的标志?

问题描述 投票:1回答:1

是否可以在云领域中禁用服务发现但仍保留注册。

类似于如何禁用自动注册但保持发现像@EnableDiscoveryClient(autoRegisters=false)

spring-boot spring-cloud spring-cloud-consul
1个回答
0
投票

spring.cloud.consul.discovery.enabled=false将禁用领事DiscoveryClient。没有java / annotation方法可以做到这一点。

© www.soinside.com 2019 - 2024. All rights reserved.