IDEA模拟客户端及服务器连接ZooKeeper集群
前提:具体操作见https://blog.csdn.net/weixin_41265887/article/details/1139743151.创建DistributeServer.java类package cn.tod;import org.apache.zookeeper.*;import java.io.IOException;public class DistributeServer { private static String connectString = .




