Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bean 'dubboConfigConfiguration.Single', defined in null, could not be registered #476

Closed
zhengqigo opened this issue Mar 27, 2019 · 9 comments

Comments

@zhengqigo
Copy link

OS: Windows 10
JDK: 1.8
Dubbo: 2.7.1
Dubbo-Starter: 2.7.0


APPLICATION FAILED TO START


Description:

The bean 'dubboConfigConfiguration.Single', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

@zhengqigo
Copy link
Author

@mercyblitz

@fitzf
Copy link

fitzf commented Mar 27, 2019

spring.properties set spring.main.allow-bean-definition-overriding=true

@mercyblitz
Copy link
Contributor

Did you use Spring Boot 2.1.0?

@zhengqigo
Copy link
Author

Spring Boot 2.1.3

@Yahiko-r
Copy link

I had the same problem. Then i remove @EnableDubbo annotation. it's OK

@skycyang
Copy link

I had the same problem

@lazycece
Copy link

I also have the same problem, when i change the dubbo's version from 2.7.0 to 2.7.1 (because the dubbo-2.7.0 has a bug "incubator-dubbo/issues/3555" which be fix on 2.7.1),then i think maybe the dubbo-starter shuld be alse 2.7.1, but i cannot use the dubbo-starter-2.7.1(the dependency will not be found)

@mercyblitz
Copy link
Contributor

mercyblitz commented Apr 2, 2019

Did you try to add property spring.properties set spring.main.allow-bean-definition-overriding=true ?

@mercyblitz
Copy link
Contributor

See apache/dubbo#3193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants