Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.yxt.yyth;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class YxtYythApplicationTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
System.out.println(IdUtil.nanoId());
|
||||
System.out.println(IdUtil.getSnowflakeNextId());
|
||||
|
||||
UUID uuid = UUID.randomUUID();
|
||||
String uniqueID = uuid.toString().replaceAll("-", "").substring(0, 16).replaceAll("\\D", "");
|
||||
System.out.println(uniqueID);
|
||||
}
|
||||
}
|
||||
|
||||
//do3KW8XIUSyu4vg_zTXdm
|
||||
// 1727231267909320704
|
||||
//uw0AotdmQTlIxKlA2V8_O
|
||||
// 1727231437887668224
|
||||
|
||||
Reference in New Issue
Block a user