随机获得id的方法

public String generateUUID() {
String uuid = UUID.randomUUID().toString();
uuid = uuid.replace("-", "");
return uuid;

}

猜你喜欢

转载自www.cnblogs.com/chengxuyuanIng/p/10518017.html