UUID 32位生成
1 @Test 2 public void testUUID() { 3 String uuid = UUID.randomUUID().toString().replace("-", "").toUpperCase(); 4 System.out.println("uuid2:" + uuid); 5 }
1 @Test 2 public void testUUID() { 3 String uuid = UUID.randomUUID().toString().replace("-", "").toUpperCase(); 4 System.out.println("uuid2:" + uuid); 5 }