java110
2021-04-08 c9b36c8d499409d5b596e4f9cf4fc47fd8a42fd8
java110-utils/src/main/java/com/java110/utils/util/Java110Converter.java
@@ -26,7 +26,9 @@
    }
    public static Object getValue(Object value, Class target) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if (value == null) {
            return value;
        }
@@ -100,6 +102,15 @@
            return String.valueOf(value).split(",");
        }
        //1.0 String 转 Date
        if (value instanceof String && target == boolean.class) {
            String bl = (String) value;
            if ("true".equals(bl)) {
                return true;
            }
            return false;
        }
        return value;
    }
}