springcloud运行zuul时提示counterFactory could not be registered

错误如下

Description:

The bean 'counterFactory', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulCounterFactoryConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulMetricsConfiguration.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.0改为2.0.6解决。。。。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,833评论 19 139
  • 佛八音 一,极好音,也叫最好声,清脆响亮。 二,柔软音,如水一般柔软,比音乐的声音更好听。 三,合适音,声音柔和恰...
    拳在心中阅读 7,353评论 0 0
  • “那你就得学会把自己往火坑里推,多推几次;并且告诉自己,你必须完整无缺地出来,要从头到脚由内而外的完整,身上没有一...
    公子卿言阅读 1,549评论 0 0

友情链接更多精彩内容