import org.springframework.beans.BeanUtils; BeanUtils.copyProperties(源对象, 目标对象); 转载于:https://www.cnblogs.com/gczmn/p/9855078.html