问题
The bean 'XXXX.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.问题处理
解决方案
1、把feign的代码进行合并
缺点:代码太庞杂
2、setting spring.main.allow-bean-definition-overriding=true
# 解决The bean 'gateway-server.FeignClientSpecification' could not be registered
main:
allow-bean-definition-overriding: true
3、在@FeignClient增加contextId,contextId不能重复
@FeignClient(name = "gateway-server", path = "order-service", contextId = "car")