UUIDUtils.java
package com.sfpay.scfp.oms.app.util;
import org.apache.commons.lang3.StringUtils;
import java.util.UUID;
/**
* Created by 01059519 on 2016/11/14.
*/
public abstract class UUIDUtils {
public static String randomUUID(){
String uuid = UUID.randomUUID().toString();
return StringUtils.remove(uuid, "-");
}
/**
* 生成64位UUID
* @return
*/
public static String generateUUID64(){
return (randomUUID()+randomUUID());
}
// public static void main(String[] args) {
// System.out.println(UUIDUtils.generateUUID64());
// }
}