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

Posted wenbiquan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definiti相关的知识,希望对你有一定的参考价值。

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-definiti的主要内容,如果未能解决你的问题,请参考以下文章

consider increasing the maximum size of the cache.

consider increasing the maximum size of the cache

Consider static factory methods instead of constructors

Error in findrow(fit, times, extend) : no points selected for one or more curves, consider using the

Consider defining a bean of type 'package' in your configuration [Spring-Boot]

Tomcat 警告:consider increasing the maximum size of the cache