相关包
java.util.UUID;
具体实现
UUID uuid = UUID.randomUUID();
去掉 -
String uuid = UUID.randomUUID().toString().replace("-", "");
给定字符名称获取uuid
UUID uuid = UUID.nameUUIDFromBytes("woaitaozi".getBytes());
还有其他方法,以后再百度吧
相关包
java.util.UUID;
具体实现
UUID uuid = UUID.randomUUID();
去掉 -
String uuid = UUID.randomUUID().toString().replace("-", "");
给定字符名称获取uuid
UUID uuid = UUID.nameUUIDFromBytes("woaitaozi".getBytes());
还有其他方法,以后再百度吧