最新代码
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.starry.common.utils;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* @since 2024/5/13 下午11:07
|
||||
**/
|
||||
public class IdUtils {
|
||||
|
||||
|
||||
/**
|
||||
* 生成16位的UUID
|
||||
*
|
||||
* @return UUID
|
||||
*/
|
||||
public static String getUuid() {
|
||||
return UUID.randomUUID().toString().replaceAll("-", "").substring(0, 12);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user