生成唯一标识符 ,通用唯一标识符 UUID

 1 import java.util.UUID;
 2 
 3 /**
 4  * UUID生成工具
 5  * 
 6  */
 7 
 8 public final class UuidGenUtils {
 9 
10     /**
11      * 生成一个UUID串(32个字符,其中的字母为小写)
12      * @return
13      * @throws
14      */
15     public static String genUUID() {
16         return UUID.randomUUID().toString().replaceAll("-", "");
17     }
18 }
原文地址:https://www.cnblogs.com/shenjiangwei/p/8007126.html