package com.tech.jin.util; import java.util.UUID; public class UuidUtil { public static String get32UUID() { String uuid = UUID.randomUUID().toString().trim().replaceAll("-", ""); return uuid; } public static void main(String[] args) { System.out.println(get32UUID()); } }
原文:http://www.cnblogs.com/jinzhiming/p/6256952.html