66

使用ZooKeeper提供的原生Java API操作ZooKeeper节点-zero

 6 years ago
source link: http://blog.51cto.com/zero01/2108333
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
建立客户端与zk服务端的连接我们先来创建一个普通的maven工程,然后在pom.xml文件中配置zookeeper依赖:<dependencies><dependency><groupId>org.apache.zookeeper</groupId><artifactId>zookeeper</artifactId><v

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK