您的位置:首页 > 运维架构 > Linux

the linux command line学习笔记之五

2015-03-07 12:17 387 查看
BeanUtils是一个java中的工具类,用来做po和vo之间的相互转换工作,但是有两个不同的BeanUtils:
1、org.apache.commons.beanutils.BeanUtils
BeanUtils.copyProperties(teacher, student);是指将student中的值赋给teacher
2、org.springframework.beans.BeanUtils
BeanUtils.copyProperties(teacher, student);是指将teacher中的值赋给student
这两个包中的BeanUtils的copyProperties方法使用刚好相反,记录一下,以免出错。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: