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方法使用刚好相反,记录一下,以免出错。
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方法使用刚好相反,记录一下,以免出错。
相关文章推荐
- the linux command line学习笔记之四
- the linux command line学习笔记之三
- the linux Command Line 学习笔记--mysql命令行导入sql文件到指定数据库的方法
- The Linux Command Line 学习笔记(1-10章)
- linux command Line and shell script bible(笔记三)
- How to download files from the Linux command line
- linux command Line and shell script bible(笔记三_权限/用户)
- Beginning the Linux Command Line--第2章 完成基本命令行任务
- Good habit to read something every night The linux command line
- linux command Line and shell script bible(笔记十六)
- linux command Line and shell script bible(笔记六_比较)
- linux command Line and shell script bible(笔记十)
- linux command Line and shell script bible(笔记四)
- [SDK学习]Managing Projects from the Command Line
- linux command Line and shell script bible(笔记十三)
- linux command Line and shell script bible(笔记十七)
- linux command Line and shell script bible(笔记九)
- linux command Line and shell script bible(笔记十一)
- 【Linux学习笔记】Linux C中内联汇编的语法格式及使用方法(Inline Assembly in Linux C)
- linux command Line and shell script bible(笔记一)