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("-", "");
| }
| }
|
|