kongdeqiang
2023-07-10 aaabd0a9eb8f88705208fc9b0ff441dd0fd7ccbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.boying.util;
 
import java.util.UUID;
 
public class StringUtil {
 
    public static boolean isNullOrEmpty(String str) {
        if (null == str || "".equalsIgnoreCase(str.trim())
                || "null".equals(str.trim())) {
            return true;
        }
        return false;
    }
 
    public static String getUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}