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"/>