BeanUtils.copyProperties("转换后的类", "要转换的类"); 属性名要一样 数据类型不一样 可以自动转化 PropertyUtils.copyProperties("转换后的类", "要转换的类");