@@ -0,0 +1,1005 @@
+package com.flying.dao.utils;%0A%0Aimport java.lang.reflect.Array;%0Aimport java.util.Collection;%0Aimport java.util.Map;%0A%0A/**%0A * Created by FlyingHe on 2018/2/3.%0A */%0Apublic class Ognl %7B%0A    public static boolean isEmpty(Object obj) %7B%0A        if (obj == null) %7B%0A            return true;%0A        %7D%0A%0A        if (obj instanceof String) %7B%0A            if (((String) obj).trim().length() == 0) %7B%0A                return true;%0A            %7D%0A        %7D else if (obj instanceof Collection) %7B%0A            if (((Collection%3C?%3E) obj).isEmpty()) %7B%0A                return true;%0A            %7D%0A        %7D else if (obj.getClass().isArray()) %7B%0A            if (Array.getLength(obj) == 0) %7B%0A                return true;%0A            %7D%0A        %7D else if (obj instanceof Map) %7B%0A            if (((Map%3C?, ?%3E) obj).isEmpty()) %7B%0A                return true;%0A            %7D%0A        %7D else %7B%0A            return false;%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A    public static boolean isNotEmpty(Object obj) %7B%0A        return !isEmpty(obj);%0A    %7D%0A%7D%0A

add ognl utils