Dubbo client version selection
Dubbo 2.5.x and prior, use zkclient to operate zookeeper
Pom.xml configuration:
Com.alibaba dubbo 2.5.6 com.101tec zkclient 0.10
ApplicationContext.xml header configuration: (pay attention to namespaces)
Dubbo 2.6.x and later, operate zookeeper with curator
Pom.xml configuration:
Com.alibaba dubbo 2.6.2 org.apache.curator curator-framework 2.12.0
ApplicationContext.xml header configuration: (pay attention to namespaces)
Note: spring is integrated after 2.6.x, and the namespace should also be modified, otherwise there will be the following exception:
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://dubbo.apache.org/schema/dubbo]