有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Spring引导注册到多个注册表?

是否有人知道如何让spring boot to registrer访问多个注册服务,例如eureka和Consor

我们希望在切换之前将它们并行运行一段时间

Field registration in org.springframework.cloud.client.serviceregistry.ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration required a single bean, but 2 were found:
- eurekaRegistration: defined by method 'eurekaRegistration' in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.class]
- consulRegistration: defined by method 'consulRegistration' in class path resource [org/springframework/cloud/consul/serviceregistry/ConsulAutoServiceRegistrationAutoConfiguration.class]

共 (0) 个答案