补充readme信息

This commit is contained in:
zlt
2019-04-12 13:54:37 +08:00
parent 3d1be4a2c5
commit 1d09602ba8
2 changed files with 2 additions and 25 deletions
@@ -1,24 +0,0 @@
package com.sharding;
import com.central.common.utils.IdGenerator;
/**
* sharding-jdbc demo
*
* @author zlt
*/
public class TestApplication {
public static void main(String[] args) {
for (int i = 0; i < 100; i++) {
long userId = IdGenerator.getId();
System.out.println(userId);
userId = userId & 15;
System.out.println(userId);
}
/*
long orderId = IdGenerator.getId();
System.out.println(orderId);
orderId = (orderId << 4) | userId;
System.out.println(orderId);*/
}
}