标签:random ati public out uid test sys nbsp ret
定义一个类
public class IDutils {
public static String getid(){
return UUID.randomUUID().toString().replaceAll("-","");
}
@Test
public void get(){
System.out.println("true = " + IDutils.getid());
System.out.println("true = " + IDutils.getid());
System.out.println("true = " + IDutils.getid());
}
}
实例化类即可使用。
标签:random ati public out uid test sys nbsp ret
原文地址:https://www.cnblogs.com/aojiaodebaihuBlog/p/13381217.html