两个实体类,属性一样。快速赋值
SsV2McAllStandar mcst = new SsV2McAllStandar(); SsV2StoreAllStandar svst = new SsV2StoreAllStandar(); mcst.setImgurl("//测试"); Map<String, Object> map = new HashMap<String, Object>(); //不同实体赋值 BeanUtils.copyProperties(mcst, svst); System.out.println(svst.getImgurl()); //结果 //测试