- nacosRegistration: defined by method 'nacosRegistration' in class path resource [com/alibaba/cloud/nacos/NacosDiscoveryAutoConfiguration.class]
- eurekaRegistration: defined in BeanDefinition defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]
将nacos注册中心换成Eureka出现错误,是因为当前程序中有两个注册中心了,配置yml将nacos忽略
spring:
autoconfigure:
exclude: com.alibaba.cloud.nacos.NacosDiscoveryAutoConfiguration