dubbo-spring-boot-project icon indicating copy to clipboard operation
dubbo-spring-boot-project copied to clipboard

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

Open zhengqigo opened this issue 7 years ago • 9 comments

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 avatar Mar 27 '19 05:03 zhengqigo

@mercyblitz

zhengqigo avatar Mar 27 '19 05:03 zhengqigo

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

feixz avatar Mar 27 '19 15:03 feixz

Did you use Spring Boot 2.1.0?

mercyblitz avatar Mar 28 '19 01:03 mercyblitz

Spring Boot 2.1.3

zhengqigo avatar Mar 28 '19 08:03 zhengqigo

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

Yahiko-r avatar Mar 28 '19 11:03 Yahiko-r

I had the same problem

skycyang avatar Mar 29 '19 05:03 skycyang

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)

lazycece avatar Mar 30 '19 14:03 lazycece

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

mercyblitz avatar Apr 02 '19 01:04 mercyblitz

See https://github.com/apache/incubator-dubbo/issues/3193

mercyblitz avatar Apr 03 '19 05:04 mercyblitz