达博<强> 强>以前的版本,用zkclient操作饲养员
砰的一声。xml配置:
& lt; dependency> & lt; groupId> com.alibaba & lt; artifactId> dubbo & lt; version> 2.5.6 & lt;/dependency> & lt; !——zkclient祝辞 & lt; dependency> & lt; groupId> com.101tec & lt; artifactId> zkclient & lt; version> 0.10 & lt;/version> & lt;/dependency>
applicationContext。xml文件头配置(注:意命名空间)
& lt;豆类xmlns=" http://www.springframework.org/schema/beans " xmlns: xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:达博=" http://code.alibabatech.com/schema/dubbo " xsi: schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd "在
达博<强> >强及以后的版本,用馆长操作饲养员
砰的一声。xml配置:
& lt; dependency> & lt; groupId> com.alibaba & lt; artifactId> dubbo & lt; version> 2.6.2 & lt;/dependency> & lt; !馆长——比; & lt; dependency> & lt; groupId> org.apache.curator & lt; artifactId> curator-framework & lt; version> 2.12.0 & lt;/dependency>
applicationContext。xml文件头配置(注:意命名空间)
& lt;豆类xmlns=" http://www.springframework.org/schema/beans " xmlns: xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:达博=" http://dubbo.apache.org/schema/dubbo " xsi: schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd "在
注:伴有以后集成春天,命名空间也要修改,否则会有如下异常: