jdk须为1.7
pom.xml
<dependency> <groupId>com.netflix.curator</groupId> <artifactId>curator-framework</artifactId> <version>1.1.10</version> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-client</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-framework</artifactId> <version>4.0.0</version> </dependency>
provider.xml
<dubbo:registry protocol="zookeeper" address="localhost:2181" client="curator"/>
consumer.xml
<dubbo:registry protocol="zookeeper" address="localhost:2181" client="curator"/>
原文地址:http://blog.51cto.com/antlove/2079875
时间: 2024-10-29 01:06:09