BeanUtils提供了对于JavaBean进行各种操作,比如对象,属性复制等等。1.创建一个实体类packagecommons;publicclassUser{privateStringname;privateintage;publicStringgetName(){returnname;}publicvoidsetName(Stringname){this.name=name;}publicintgetAge(){returnage;}publicvoidsetAge(intage)...
查看全文