搭建zuul从SpringBoot 2.0.3升级到SpringBoot 2.1.3出现的问题

闲来无事,手贱把网关项目zuul中的SpringBoot2.0.3.RELEASE 版本改为了2.1.3.RELEASE ,然后重新启动项目之后,出现了如下问题(接触不久,一阵小心心慌慌)

***************************
APPLICATION FAILED TO START
***************************

Description:
The bean 'proxyRequestHelper', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$NoActuatorConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$EndpointConfiguration.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和SpringCloud 版本没有匹配上,然后去查了下Spring官网资料,印证了自己的想法,下图是SpringCloud中的解释
在这里插入图片描述
所在根据相应的SpringBoot 版本配置相对应的SpringCloud 版本即可解决该问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值