当前位置:
首页 >
小知识点BeanUtils.copyProperties
发布时间:2024/9/27
51
豆豆
生活随笔
收集整理的这篇文章主要介绍了
小知识点BeanUtils.copyProperties
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
通过BeanUtils.copyProperties可以时间拷贝对象中的值,下面的new String[]{"cid","agreeFlag","flag","publishTime","projectNum"}表示的不拷贝的属性值
CopyRight copyRight = copyRightService.createCopyRight(request, user);
//获得要修改的course,然后重新设置参数
CopyRight copyRightInDataBase = copyRightService.findByCopyRightId(copyRight.getCid());
BeanUtils.copyProperties(copyRight, copyRightInDataBase,
new String[]{"cid","agreeFlag","flag","publishTime","projectNum"})
总结
以上是生活随笔为你收集整理的小知识点BeanUtils.copyProperties的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: T-46轻型坦克
- 下一篇: NDK开发环境安装,CDT安装,Cygw