<span style="font-family:Microsoft YaHei;font-size:14px;">public class UUIDUtil {
public static String generateKey(){
String id = <strong>UUID.randomUUID().toString() </strong>;
return id.<strong>replaceAll("-","") </strong>;
}
public static String generateUpperKey(){
String id = UUID.randomUUID().toString().toUpperCase() ;
return id.replaceAll("-","") ;
}
}
</span>
java中UUID
最新推荐文章于 2021-02-24 00:59:33 发布