当前位置: 软件>java软件
Java Bean 工具包 Dozer
本文导语: Dozer是一个用来复制 JavaBean 属性的类库,类似 BeanUtils 例如: MapperIF mapper = new DozerBeanMapper();DestinationObject destObject = (DestinationObject) mapper.map(sourceObject, DestinationObject.class);//或者是DestinationObject destObject = new DestinationObject();mapper.map...
Dozer是一个用来复制 JavaBean 属性的类库,类似 BeanUtils
例如:
MapperIF mapper = new DozerBeanMapper();
DestinationObject destObject = (DestinationObject) mapper.map(sourceObject, DestinationObject.class);
//或者是
DestinationObject destObject = new DestinationObject();
mapper.map(sourceObject, destObject);