java生成UUID
package com.rk.utils; import java.util.UUID; import org.junit.Test; public class SecurityUtils { public static String getUUID() { return UUID.randomUUID().toString().replaceAll("-", ""); } @Test public void test() { String str = getUUID(); System.out.println(str); } }
原文地址:http://lsieun.blog.51cto.com/9210464/1790123