BeanUtils 使用问题
摘要:在struts2中Action若实现ModelDriven一般就会用到BeanUtils工具类复制实例对象的属性值,BeanUtils.copyProperties(tempEducation, education);在导包的时候要特别小心,情况如下:import org.springframework.beans.BeanUtils;在spring中,copyProperties(Object source; Object target); //前面是源实例对象,后面是目标实例对象import org.apache.commons.beanutils.BeanUtils;而在commons.
阅读全文
posted @ 2012-12-23 23:42