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
标签:definition,调用,OpenFeign,SpringCloud,bean,overriding,main,true 来源: https://blog.csdn.net/qq_59614192/article/details/122802180