Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Dubbo client version selection

Shulou Source: shulou.com Published: 2022-06-03 02:59:37 11月12日 Update

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]

Tags: Configuration Space version File customer client Select Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Microsoft Huawei Shulou Tech Info