- 📚 相关推荐文章
- SpringCloud Alibaba 整合 Dubbo 、Nacos 及No provider available from registry报错解决方案 推荐
- Spring CloudBoot启动报错Consider defining a bean of type ServerCodecConfigurer 推荐
- spring框架报错:java.lang.NoClassDefFoundError: orgspringframeworkaopTargetSource 推荐
- Spring框架中@Resource注解报错解决方案 推荐
- Spring框架(SpringBoot)中redis报错(Could not get a resource from the pool、java.net.SocketTimeoutException) 推荐

zuul网关启动报错:Consider renaming one of the beans or enabling overriding by setting spring.main
zuul网关服务启动不成功
报错:
The bean 'proxyRequestHelper', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$NoActuatorConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$EndpointConfiguration.class] and overriding is disabled. Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true原因:项目环境 SpringBoot 2.1.5.RELEASE 和 SpringCloud Finchley.RELEASE 版本不兼容
解决办法:SpringCloud Finchley.RELEASE 版本 替换成 Greenwich.RELEASE
版本对应关系
👁️ 阅读量:0
© 版权声明:本文《zuul网关启动报错:Consider renaming one of the beans or enabling overriding by setting spring.main》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686552021a289799.html。