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