2017-03-17
看到这篇文章,访问量挺高,但营养不多,对于急于需要解决问题的人来说,简直浪费时间。所以,今天特意整理一下转换
1我使用的是 ModelMapper,其他转换类也有和很多,不要局限于使用这个。
<!--modelmapper--> <dependency> <groupId>org.modelmapper</groupId> <artifactId>modelmapper</artifactId> <version>0.7.5</version> </dependency>
2配置转换类 ClazzA 到 ClazzB