服务器启动报错信息:
***************************
APPLICATION FAILED TO START
***************************Description:
The bean 'ctfmall-wx-adapt-service.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
原因:@FeignClient value/name 值重复导致服务启动报错
二、解决方法:
1)改配置
spring.application.main.allow-bean-definition-overriding=true
2)设置contextId区分唯一性
三、最终结论:
参考:@FeignClient value/name 值重复导致报错的解决办法_@feignclient value重复-CSDN博客