package com.freeter.util; import java.util.UUID; /** * @author liuqi * **/public class Uuid{ public static void getUuid(){ String uuid=UUID.randomUUID().toString().replaceAll("-",""); System.out.println("随机生成Uuid:"+uuid); } public static void main(String[] args) { getUuid(); } }
原文地址:https://www.cnblogs.com/LQ970811/p/12040344.html
时间: 2024-11-09 00:49:37