使用lombok 插件后,mapstruct 不生效

背景:

springboot 项目使用 lombok 插件后,添加 mapstruct  插件,maven 编译时 mapstruct 插件不起作用。

 

目前先匆匆记录一下一种解决方案

一种解决方案:

pom 文件中加入以下依赖。笔者使用的 mapstruct 版本为 1.3.0.Final

 
        
            org.mapstruct
            mapstruct-processor
            1.3.0.Final
        
        
            org.mapstruct
            mapstruct-jdk8
            1.3.0.Final
        
 

你可能感兴趣的:(工具使用,springboot)