AddGo
This commit is contained in:
@@ -17,7 +17,7 @@ public class IdGeneratorOptions {
|
||||
public short Method = 1;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
* 基础时间
|
||||
* 不能超过当前系统时间
|
||||
*/
|
||||
public long BaseTime = 1582136402000L;
|
||||
|
||||
@@ -34,8 +34,8 @@ public class StartUp {
|
||||
options.BaseTime = 1582206693000L;
|
||||
options.WorkerId = 1;
|
||||
|
||||
IIdGenerator IdGen = new DefaultIdGenerator(options);
|
||||
GenTest genTest = new GenTest(IdGen, genIdCount, options.WorkerId);
|
||||
IIdGenerator idGen = new DefaultIdGenerator(options);
|
||||
GenTest genTest = new GenTest(idGen, genIdCount, options.WorkerId);
|
||||
|
||||
// 首先测试一下 IdHelper 方法,获取单个Id
|
||||
YitIdHelper.setIdGenerator(options);
|
||||
|
||||
Reference in New Issue
Block a user