XCSDN
2022-04-07 c0d430f4e5adf08129c2610d9d2b5446bb19c0d6
ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java
@@ -5,13 +5,15 @@
 * 
 * @author ruoyi
 */
public class IdUtils {
public class IdUtils
{
    /**
     * 获取随机UUID
     * 
     * @return 随机UUID
     */
    public static String randomUUID() {
    public static String randomUUID()
    {
        return UUID.randomUUID().toString();
    }
@@ -20,7 +22,8 @@
     * 
     * @return 简化的UUID,去掉了横线
     */
    public static String simpleUUID() {
    public static String simpleUUID()
    {
        return UUID.randomUUID().toString(true);
    }
@@ -29,7 +32,8 @@
     * 
     * @return 随机UUID
     */
    public static String fastUUID() {
    public static String fastUUID()
    {
        return UUID.fastUUID().toString();
    }
@@ -38,7 +42,8 @@
     * 
     * @return 简化的UUID,去掉了横线
     */
    public static String fastSimpleUUID() {
    public static String fastSimpleUUID()
    {
        return UUID.fastUUID().toString(true);
    }
}