📜  从字符串生成 uuid - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:09.964000             🧑  作者: Mango

代码示例1
// You can use UUID this way to get always the same UUID for your input String:
 String aString="JUST_A_TEST_STRING";
 String result = UUID.nameUUIDFromBytes(aString.getBytes()).toString();