feat: There is no way the, Es
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.adc.da.utils.util;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellType;
|
||||
@@ -18,6 +19,16 @@ public class Utils {
|
||||
return MessageFormat.format(value, paras);
|
||||
}
|
||||
|
||||
|
||||
public static boolean isJson(String string) {
|
||||
try {
|
||||
JSONObject.parseObject(string);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//判断row是否为空 空返回true
|
||||
public static boolean isRowEmpty(Row row) {
|
||||
if (null == row) {
|
||||
|
||||
Reference in New Issue
Block a user