list = new ArrayList<>();
blogInfoRepository.findByBlogTypeId(typeId).stream().forEach(blogInfo -> {
list.add(BlogInfoConverter.INSTANCE.domain2vo(blogInfo));
});
return list;
}
### 总结
**本篇主要讲解MapStruct的基本使用方法,里面的很多其他的用法我也还没深入探究,不过我本是很喜欢使用MapStruct的**
> 个人博客地址: https://www.askajohnny.com 欢迎访问!
> 本文由博客一文多发平台 [OpenWrite](https://openwrite.cn?from=article_bottom) 发布!MapStruct 映射工具
原文:https://www.cnblogs.com/askajohnny/p/12072134.html