对象里面的相同属性赋值到另一个对象(Student--> StudentVO)
BeanUtils.copyProperties(student,studentVO);
备注:
Student 里的属性与 StudentVO对象里的相同属性会赋值过去,不同的属性,得自己慢慢用set()方法写了
BeanUtils.copyProperties(student,studentVO);
备注:
Student 里的属性与 StudentVO对象里的相同属性会赋值过去,不同的属性,得自己慢慢用set()方法写了