BeanUtils.copyProperties(user1,user2); 将user1中的参数,传给user2。只传两个类中都有的参数 转载于:https://www.cnblogs.com/dadddd/p/10736907.html