public static Object clone(Object formObject, Object toObject) {
try {
ConvertUtils.register(new DateConverter(null), java.util.Date.class);
BeanUtils.copyProperties(toObject, formObject);
} catch (Exception e) {
throw new RuntimeException("clone"+e, e);
}
return toObject;
}
ApacheClone对于Date的异常处理
最新推荐文章于 2022-06-30 17:18:36 发布