21 lines
390 B
Java
21 lines
390 B
Java
import com.couplet.vehicle.utils.SnowflakeIdGenerator;
|
|
|
|
/**
|
|
* @ProjectName: five-groups-couplet
|
|
* @Author: LiuYunHu
|
|
* @CreateTime: 2024/3/27
|
|
* @Description:
|
|
*/
|
|
|
|
public class IdTest {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
SnowflakeIdGenerator idGenerator = new SnowflakeIdGenerator(1, 1);
|
|
|
|
long l = idGenerator.nextId();
|
|
System.out.println(l);
|
|
|
|
}
|
|
}
|