1.BeanUtils.copyProperties
import org.springframework.beans.BeanUtils;
User src = new User();
User dest = new User();
BeanUtils.copyProperties(dest, src);
项目应用场景:将具有相同属性的ProductVO 转为Product。(ProductVO 包含的属性比Product多,包括不在product表里的list<Tag>,List<Qa>等)