id
id 是一款为 java 设计常见 ID 实现策略。
快速开始
maven 引入
<dependency>
<groupId>com.github.hughwick</groupId>
<artifactId>id</artifactId>
<version>1.0.2</version>
</dependency>
入门例子
测试代码
String uniqueId = IdSequence.snowflake();
System.out.println(uniqueId);
- 结果
1299505900110270464