idea使用mapstruct报错,Internal error in the mapping processor
错误信息如下:
java: Internal error in the mapping processor: java.lang.NullPointerException at org.ma...
修改方式:
升级mapstruct到最新版本,排除swagger2中的依赖。大致如下:
我的环境:idea:2021.02
1.4.2.Final
io.swagger swagger-annotations 1.5.22 org.mapstruct mapstruct org.mapstruct mapstruct ${mapstruct.version} org.mapstruct mapstruct-jdk8 ${mapstruct.version} org.mapstruct mapstruct-processor ${mapstruct.version} provided