Dozer是一个用来复制 JavaBean 属性的类库,类似 BeanUtils
例如:
MapperIF mapper = new DozerBeanMapper(); DestinationObject destObject = (DestinationObject) mapper.map(sourceObject, DestinationObject.class); //或者是 DestinationObject destObject = new DestinationObject(); mapper.map(sourceObject, destObject);