启动SpringBoot项目,控制台报The bean 'xxx.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled 信息
在yml文件中配置如下代码即可:
main:
allow-bean-definition-overriding: true
spring:
application:
name: newsvwuc-assess-service
main:
allow-bean-definition-overriding: true # 后来发现的bean会覆盖之前相同名称的bean
网友评论