补充readme信息
This commit is contained in:
@@ -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);*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user