|
|
|
@ -29,6 +29,7 @@ |
|
|
|
|
<commons-lang3.version>3.8.1</commons-lang3.version> |
|
|
|
|
<commons-codec.version>1.11</commons-codec.version> |
|
|
|
|
<zookeeper.version>3.4.12</zookeeper.version> |
|
|
|
|
<curator-recipes.version>4.0.1</curator-recipes.version> |
|
|
|
|
<validation-api.version>2.0.1.Final</validation-api.version> |
|
|
|
|
<hibernate-validator.version>6.0.13.Final</hibernate-validator.version> |
|
|
|
|
</properties> |
|
|
|
@ -59,24 +60,21 @@ |
|
|
|
|
</dependencyManagement> |
|
|
|
|
|
|
|
|
|
<dependencies> |
|
|
|
|
<!-- zookeeper --> |
|
|
|
|
<!-- zookeeper客户端针对zookeeper-3.4.x |
|
|
|
|
如果zookeeper使用3.5.x,可以直接使用curator-recipes最高版本 |
|
|
|
|
详情:http://curator.apache.org/zk-compatibility.html |
|
|
|
|
--> |
|
|
|
|
<dependency> |
|
|
|
|
<groupId>org.springframework.cloud</groupId> |
|
|
|
|
<artifactId>spring-cloud-starter-zookeeper-all</artifactId> |
|
|
|
|
<groupId>org.apache.curator</groupId> |
|
|
|
|
<artifactId>curator-recipes</artifactId> |
|
|
|
|
<version>${curator-recipes.version}</version> |
|
|
|
|
<exclusions> |
|
|
|
|
<!-- 不使用服务发现 --> |
|
|
|
|
<exclusion> |
|
|
|
|
<groupId>org.springframework.cloud</groupId> |
|
|
|
|
<artifactId>spring-cloud-starter-zookeeper-discovery</artifactId> |
|
|
|
|
</exclusion> |
|
|
|
|
<!-- 这里为什么要排除,详见:http://curator.apache.org/zk-compatibility.html --> |
|
|
|
|
<exclusion> |
|
|
|
|
<groupId>org.apache.zookeeper</groupId> |
|
|
|
|
<artifactId>zookeeper</artifactId> |
|
|
|
|
</exclusion> |
|
|
|
|
</exclusions> |
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
|
<groupId>org.apache.zookeeper</groupId> |
|
|
|
|
<artifactId>zookeeper</artifactId> |
|
|
|
|