解决The bean ‘xxxx.FeignClientSpecification‘ could not be registered. 问题

Description:

The bean 'xxxx.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

解决The bean ‘xxxx.FeignClientSpecification‘ could not be registered. 问题_第1张图片

1.把feign的代码进行合并 (不建议:代码太杂乱)

2.在出错的bootstrap.yaml中配置:

setting spring.main allow-bean-definition-overriding=true

3.在@FeignClient增加contextId,contextId不能重复

你可能感兴趣的:(java,数据库,开发语言)