Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三十章:SpringBoot使用MapStruct自动映射DTO - 恒宇少年De成长之路 #44

Open
hengboy opened this issue Mar 4, 2019 · 1 comment

Comments

@hengboy
Copy link
Owner

hengboy commented Mar 4, 2019

http://blog.yuqiyu.com/spring-boot-chapter30.html

MapStruct是一种类型安全的bean映射类生成java注释处理器。我们要做的就是定义一个映射器接口,声明任何必需的映射方法。在编译的过程中,MapStruct会生成此接口的实现。该实现使用纯java方法调用的源和目标对象之间的映射,MapStruct节省了时间,通过生成代码完成繁琐和容易出错的代码逻辑。下面我们来揭开它的神秘面纱

@xuzongmeng
Copy link

牛逼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants