apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.13k stars 10.2k forks source link

spring.main.allow-bean-definition-overriding=true 配置失效 #2252

Closed Blovus closed 5 years ago

Blovus commented 5 years ago

报错如下 image 原因是Spring Boot 2.1.0 版本以上后,feiginclent不允许重名,所以需要添加该配置。 但在apollo中配置不生效。(加了 apollo.bootstrap.enabled=true 也无效) spring-boot.version : 2.1.3.RELEASE spring-cloud.version : Finchley.M7 feign.version 2.1.1.RELEASE 不知道哪位大神看一下是怎么回事,是我的问题哈市Apollo有bug?

nobodyiam commented 5 years ago

配置一下eagerLoad试试

Blovus commented 5 years ago

配置一下eagerLoad试试

解决了谢谢。但这样会有什么缺点嘛

nobodyiam commented 5 years ago

@Blovus

缺点是在apollo初始化的时候,日志还没初始化,所以一开始的日志会看不到