com.power.common.util.UUIDUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-util Show documentation
Show all versions of common-util Show documentation
ApplicationPower common-util
package com.power.common.util;
import java.util.UUID;
/**
* @author yu 2018/10/14.
*/
public class UUIDUtil {
/**
* uuid
* @return string
*/
public static String getUuid(){
return UUID.randomUUID().toString();
}
/**
* 32位uuid
* @return string
*/
public static String getUuid32(){
return UUID.randomUUID().toString().replace("-","");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy