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

注解配置无效且无法启动

Open yexueyouling opened this issue 7 years ago • 2 comments

按照注解配置,使用Springboot,搭建了两个工程,一个消费者,一个服务者,并且创建了一个zookeeper容器。结构如下:

image

服务者可以正常启动。 消费者启动失败,有两个错误问题 1、@reference无法注入服务者的服务。 2、启动报错:Duplicate application configs: <dubbo:application name="service-dUbbo-custom" id="service-dUbbo-custom" /> and <dubbo:application qosEnable="false" />

完全不知道是什么原因。

源码: 消费者:https://github.com/yexueyouling/service-dobbo-custom.git 服务者:https://github.com/yexueyouling/service-dobbo-server.git

yexueyouling avatar Jan 11 '19 06:01 yexueyouling

<dubbo:application name="service-dUbbo-custom" id="service-dUbbo-custom" qosEnable="false"/>

cwdtom avatar Jan 14 '19 02:01 cwdtom

<dubbo:application name =“service-dUbbo-custom”id =“service-dUbbo-custom”qosEnable =“false”/>

不知道你说的是啥,关闭了。

yexueyouling avatar Jan 15 '19 01:01 yexueyouling