kongdeqiang
2023-03-01 b5265214f54d17c527f7f74c0cb1fff0489635e2
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("-", "");
    }
}