dubbo
dubbo copied to clipboard
DubboService注解场景下version和group单独配置,且配置值一样,启动会报错
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 3.0.10/2.7.16
- Operating System version: Windows 10
- Java version: 1.8.0_221
Steps to reproduce this issue
- 使用dubbo-spring-boot-starter + @DubboService注解
- 单独配置version或group,并且version和group值一样
- 3.0.10启动报错,2.7.16 启动后只能注册一个dubbo url到zk(期望注册2个)

Pls. provide [GitHub address] to reproduce this issue.
Expected Behavior
期望启动不报错,并且正常注册两个接口的url到注册中心
Actual Behavior
3.0.10启动报错,2.7.16启动后只会注册一个url到zk
If there is an exception, please attach the exception trace:
报错如下:
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'ServiceBean:com.dubbo.demo.demo.HelloFacade:1.0.0' defined in null: Found duplicated BeanDefinition of service interface [com.dubbo.demo.demo.HelloFacade] with bean name [ServiceBean:com.dubbo.demo.demo.HelloFacade:1.0.0]