码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2019-08-16 19:06:16      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:zip   str   name   rip   min   解决   pen   cti   The   

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

标签:zip   str   name   rip   min   解决   pen   cti   The   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!