import org.apache.commons.beanutils.BeanUtils; BeanUtils.copyProperties(assets, temp); 这个方法可以实现,具有相同属性的类互相赋值。 相关文章: