(一)springBoot集成springCloud遇到的坑

分手后的思念是犯贱 2022-04-22 15:00 331阅读 0赞
  1. Description:
  2. 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.
  3. Action:
  4. Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

在使用springboot集成springcloud的过程中,当启动zuul服务时,遇到上述错误,首先检查了application.yml文件以及启动类的注解都没有写错,后来发现springboot对应的springcloud的版本不对,在使用springcloud时一定要注意springcloud和springboot对应问题,及时避免后面遇到的坑。

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Z4a2FuZ2thbmc_size_16_color_FFFFFF_t_70

发表评论

表情:
评论列表 (有 0 条评论,331人围观)

还没有评论,来说两句吧...

相关阅读