mapstruct-spring-plus
mapstruct-spring-plus copied to clipboard
mapstruct spring plus
大佬,你这代码干净的,一点注释都没有,我想看下@AutoMap.uses()干嘛用的,都要翻源码
java.lang.RuntimeException: no mapping from UserDTO to User. check @AutoMap on UserDTO or User
@Mapping(target = "name", source = "customerName") Customer toCustomer(Map map); 请问如何配置这种转换?
感觉可以代替那些所有bean copy的场景,在编译期内就自动生成对应代码,避免反射,减少性能损耗。 可以合入[mapstruct-spring-extensions](https://github.com/mapstruct/mapstruct-spring-extensions),这是一个非常nice的项目,希望作者继续提供支持
@ZhaoRd Thank you for this fantastic project! This pull request is my fix for issue #1