gitee项目地址:https://gitee.com/darkone/java-zookeeper.git 1、pom.xml依赖 2、自定义锁 3、锁抽象类(zk集群地址) 4、锁实现 4、线程生成订单号 5、订单生成类