SpringCloud中使用OpenFeign调用出现的问题

当使用OpenFeign调用单个服务中多个接口会出现以下错误

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

Description:

The bean 'shop-goods.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.

Action:

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

 解决方案1:在yml配置

  main:
    allow-bean-definition-overriding: true

上一篇:[BJDCTF2020]Easy MD5 1


下一篇:android studio隐藏系统时间栏的方法