kylixs commented on issue #9814:
URL: https://github.com/apache/dubbo/issues/9814#issuecomment-1074850962


   > Description:
   > 
   > The bean 'demoService', defined in com.example.demo.DemoApplication, could 
not be registered. A bean with that name has already been defined in file 
[D:\work\workspace\elasticsearch\demo\target\classes\com\example\demo\DemoService.class]
 and overriding is disabled.
   > 
   > Action:
   > 
   > Consider renaming one of the beans or enabling overriding by setting 
spring.main.allow-bean-definition-overriding=true
   
   I think it's worked as expected, the error is throw by spring.
   The reason why dubbo 2.7.x is no this error,  it seems that dubbo 2.7.x set 
the  `spring.main.allow-bean-definition-overriding=true`  automatically, but 
this setting is removed in dubbo 3.x.
   I think dubbo should not change spring settings by default. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to