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

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调整相关依赖的版本。

posted @ 2019-08-16 17:49  温碧泉  阅读(9954)  评论(0编辑  收藏  举报