apache / dubbo-spring-boot-project

Spring Boot Project for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
5.41k stars 1.88k forks source link

group 服务分组,当一个接口有多个实现,可以用分组区分 ,不起作用 #246

Closed nbfujx closed 5 years ago

nbfujx commented 6 years ago

group 服务分组,当一个接口有多个实现,可以用分组区分 ,不起作用

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'channelMerchantProvider' for bean class [com.mipay.polling.provider.v2.ChannelMerchantProvider] conflicts with existing, non-compatible bean definition of same name and class [com.mipay.polling.provider.v1.ChannelMerchantProvider]

mercyblitz commented 6 years ago

Which version did you use?

nbfujx commented 6 years ago
com.alibaba.boot dubbo-spring-boot-starter 0.1.1
nbfujx commented 6 years ago

文件名相同,位于不同的文件夹, 不行
文件名不相同 可以 但是Consumer 根据版本获取后过段时间 provider 会报 2018-08-30 23:17:35.109 [New I/O worker #9] WARN c.alibaba.dubbo.remoting.transport.AbstractServer - [DUBBO] All clients has discontected from /192.168.1.164:29180. You can graceful shutdown now., dubbo version: 2.0.1, current host: 192.168.1.164 导致consumer假死

mercyblitz commented 5 years ago

Please add those Maven dependencies:

<!-- Dubbo -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>dubbo</artifactId>
    <version>2.6.5</version>
</dependency>
<!-- Spring Context Extras -->
<dependency>
    <groupId>com.alibaba.spring</groupId>
    <artifactId>spring-context-support</artifactId>
    <version>1.0.2</version>
</dependency>

Dubbo 2.6.5 will use the group as a port Service bean name.