Spring Cloud Zookeeper 2.0.0 已发布,主要将使用的 Curator 版本更新至了 4.0.1 。
该版本还包含以下 3 个 issue:
DiscoveryClient bean not found in DiscoveryClientConfigServiceBootstrapConfiguration
Documentation: note in case you're working with Zookeeper 3.4.x
Missing metadata for zookeeper discovery
ZooKeeper 是一个集中式服务,用于维护配置信息、命名,提供分布式同步和提供组服务。Spring Cloud Zookeeper 包含以下功能:
Spring Cloud DiscoveryClient
实现
支持 Ribbon 和 Zuul
Zookeeper based PropertySource
loaded during the 'bootstrap' phase.
下载地址:
Source code (zip)
Source code (tar.gz)
Maven 地址:
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-zookeeper-dependencies</artifactId> <version>2.0.0.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-zookeeper-discovery</artifactId> </dependency> </dependencies>