You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "mercyblitz (GitHub)" <gi...@apache.org> on 2019/03/06 14:22:55 UTC

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #459: [Bugfix] Dubbo Spring Boot 2.7.0 Environment Beans conflict in Spring Boot or Spring Cloud 2

If you met with this issue:

```
***************************
APPLICATION FAILED TO START
***************************

Description:

Field env in org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$PropagateEventsConfiguration required a single bean, but 2 were found:
	- dubboScanBasePackagesPropertyResolver: defined by method 'dubboScanBasePackagesPropertyResolver' in class path resource [org/apache/dubbo/spring/boot/autoconfigure/DubboRelaxedBinding2AutoConfiguration.class]
	- environment: a programmatically registered singleton

Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
```

Please add property to fix bug:

```properties
spring.autoconfigure.exclude = org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration
```

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/459 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org