错误The bean 'cyb-weixin.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.
解决
在bootstrap.yml文件中添加如下配置,注意该配置不能配置到配置中心
server:
port: 9000
servlet:
context-path: /
spring:
application:
name: ym-base
main:
allow-bean-definition-overriding: true #springboot2.0以后,默认不允许同一个服务中接口中存在多个feign实体bean,即@FeignClient(“相同服务名”)会报错
cloud:
nacos:
config:
server-addr: 127.0.0.1:8848 #nacos配置中心地址
file-extension: yaml #文件扩展格式
username: nacos
password: nacos
profiles:
active: '@spring.active@' #对应nacos的Data ID命名规则