数据源orig中存在java.util.Date类型,没有初始化值,调用BeanUtils.copyProperties方法,报错No value specified for Date
调用copy之前添加
ConvertUtils.register(new DateConverter(null), java.util.Date.class);
本文讲述了在使用BeanUtils.copyProperties时遇到java.util.Date类型未初始化值报错的问题,通过添加DateConverter并注册,解决了No values specified for Date的错误。
数据源orig中存在java.util.Date类型,没有初始化值,调用BeanUtils.copyProperties方法,报错No value specified for Date
调用copy之前添加
ConvertUtils.register(new DateConverter(null), java.util.Date.class);
2128
3419
1万+

被折叠的 条评论
为什么被折叠?