org.springframework.beans.BeanUtils; Bean a= new Bean(); Bean b= new Bean(); BeanUtils.copyProperties(a, b); 调用BeanUtils的copyProperties方法可以直接把a类的 所有属性复制到b实体类里