111
wang-hao-jie
2022-08-25 d90da0759bd93c7f429f6a20bc835782ad927c02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.boying.common.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("-", "");
    }
}