zuul网关启动报错:Consider renaming one of the beans or enabling overriding by setting spring.main

编程知识 更新时间:2023-05-02 05:35:32

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

版本对应关系

 

更多推荐

zuul网关启动报错:Consider renaming one of the beans or enabling overriding by setting

本文发布于:2023-04-26 07:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/55bd9c9e5e4510294225243305339493.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   网关   beans   renaming   zuul

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 104712文章数
  • 26220阅读数
  • 0评论数