首页 > 编程语言 > 详细

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

时间:2019-08-16 19:54:48      阅读:387      评论:0      收藏:0      [点我收藏+]
Description:

The bean ‘characterEncodingFilter‘, defined in class path resource [zipkin/autoconfigure/ui/ZipkinUiAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/HttpEncodingAutoConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

问题描述:运行spring cloud子项目出现以上异常。

问题分析:英语水平有限,大致可以看出zipkin相关的东西注册不了,而zipkin不是自己写的代码。

解决问题:综合上述,加上最近几天碰了好几次上面的现象,得出的结论是依赖之间的版本不匹配。建议对照maven repository调整相关依赖的版本。

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

原文:https://www.cnblogs.com/wenbiquan/p/11365471.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!