BeanUtils工具类

BeanUtils.copyProperties(productInfo, orderDetail);

把 productInfo 中的属性copy到 orderDetail中

原文地址:https://www.cnblogs.com/gxlaqj/p/11658555.html