//toBean方法不识别date属性 要把VO的DATE该成UTIL包下的DATE 然后加上下面的代码。不然会报错
JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(new String[] {"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss"}));
BaseConstantVO baseConstantVO = (BaseConstantVO) JSONObject.toBean(paramsJson, BaseConstantVO.class);
JSONObject.toBean() data转换
原文地址:https://www.cnblogs.com/BobXie85/p/8439291.html