摘要: public class Snowflake { private static long machineId;//机器ID private static long datacenterId = 0L;//数据ID private static long sequence = 0L;//计数从零开始 private ... 阅读全文
posted @ 2019-03-19 17:41 bobo-bobo 阅读(306) 评论(0) 推荐(0) 编辑