UUID 32位生成

 

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

 

posted on 2014-10-27 09:33  @冰糖  阅读(344)  评论(0编辑  收藏  举报

导航