首页 > 其他分享 >Field registration in org.springframework.cloud.client.serviceregistry.ServiceRegistryAutoConfigurat

Field registration in org.springframework.cloud.client.serviceregistry.ServiceRegistryAutoConfigurat

时间:2024-05-02 16:55:48浏览次数:26  
标签:ServiceRegistryEndpointConfiguration defined were springframework Field org foun

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

EUREKA切换NACOS时发现两个注册中心

解决方法:

 

spring:
  autoconfigure:
    exclude: org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration

  

 

标签:ServiceRegistryEndpointConfiguration,defined,were,springframework,Field,org,foun
From: https://www.cnblogs.com/dongyaotou/p/18170331

相关文章

  • 简单解决version 'GLIBC_2.34' not found,version 'GLIBC_2.25' not found
    简单解决version'GLIBC_2.34'notfound,version'GLIBC_2.25'notfound无需手动下载安装包编译前言很多博客都是要手动下载安装包进行编译升级,但这样很容易导致系统崩溃,本博文提供一个简单的方法,参考自博客1,博客2.检查版本strings/usr/lib64/libc.so.6|grepGLIBC_或者......
  • "基础模型时代的机器人技术" —— Robotics in the Era of Foundation Models
    翻译:2023年是智能机器人规模化的重要一年!对于机器人领域之外的人来说,要传达事物变化的速度和程度是有些棘手的。与仅仅12个月前的情况相比,如今人工智能+机器人领域的大部分景观似乎完全不可识别。从学术界到初创公司再到工业研究实验室,2023年带来了一波研究进展,迫使许多人更新了......
  • spring-web-mvc项目运行报错:java.lang.NoClassDefFoundError: org/apache/catalina/We
    使用idea运行spring-web-mvc项目时,报错如下:错误:无法初始化主类com.itranswarp.learnjava1.AppConfig原因:java.lang.NoClassDefFoundError:org/apache/catalina/WebResourceRoot 首先,保证当前项目在独立的项目中打开,不要在多个项目中运行。导入Maven工程要选择:File......
  • NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
    NoClassDefFoundError:org/slf4j/impl/StaticLoggerBinderSpringBoot2.7.xxxlogback1.3.xxx实际上原因是logback-classic从v1.3.0中删除了org/slf4j/impl/StaticLoggerBinder,而spring-boot2.x只支持logback到v1.2.x(目前是1.2.12)。以下是相关问题:https://github.com/sprin......
  • sudo: apt-get: command not found
    sudo:apt-get:commandnotfoundhttps://blog.csdn.net/zhengzhaoyang122/article/details/136132952问题LinuxRedHat执行sudo卸载nginx时,出现commandnotfound错误[root@iZuf65h6i43ltlzhqolumyZlocal]#sudoapt-getremovenginxsudo:apt-get:commandnotfound12解......
  • RocketMQLog:WARN No appenders could be found for logger (io.netty.channel.nio.Ni
    springBoot集成rocketMq启动的时候报RocketMQLog:WARNNoappenderscouldbefoundforlogger(io.netty.channel.nio.NioEventLoop). RocketMQLog:WARNPleaseinitializetheloggersystemproperly. 原因是pom中的rocket的依赖版本太高了。<dependency><groupI......
  • node: /lib64/libm.so.6: version `GLIBC_2.27‘ not found问题解决方案
    问题centos7服务器使用nvm或n安装的16以后的高版本node,均会出现以下问题解决1.升级gcc与make#升级GCC(默认为4升级为8)yuminstall-ycentos-release-sclyuminstall-ydevtoolset-8-gcc*ln-s/opt/rh/devtoolset-8/root/bin/gcc/usr/bin/gccln-s/opt/rh/devtool......
  • 为什么要⽤ Foundry
    Foundry 为什么要⽤Foundry 快-加速开发 Solidity-减少上下⽂切换 功能丰富 ⾜够轻量 Foundry的组件 forge cast anvil 安装 https://getfoundry.sh/ curl-Lhttps://foundry.paradigm.xyz|bashfoundryup Cast-与链交互的⼯具箱RPC cast......
  • react报错export ‘Switch‘ (imported as ‘Switch‘) was not found in ‘react-rou
    报如下错,查react-router-dom版本。 因为:react-router-dom从V5升级到V6造成的(1)将Switch重命名为Routes(2)Route的新特性变更,component/render被element替代(3) 嵌套路由变得更简单 ......
  • composer update 依赖文件没有任何问题,依然报错it could not be found in any version
    一、报错案例composerupdate或者composerinstallcomposer.json依赖文件没有任何问题,依然报错itcouldnotbefoundinanyversion 二、解决主要就是切换镜像源:composerconfig-grepo.packagistcomposerhttps://packagist.org之后再执行composerinstall即可!......