admin管理员组文章数量:1794759
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
版本对应关系
版权声明:本文标题:zuul网关启动报错:Consider renaming one of the beans or enabling overriding by setting spring.main 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686551803a80966.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论