当前位置:
首页 >
NullPointerException at org.mapstruct.ap.internal.processor.DefaultVersionInformation.createManifest
发布时间:2024/9/27
40
豆豆
生活随笔
收集整理的这篇文章主要介绍了
NullPointerException at org.mapstruct.ap.internal.processor.DefaultVersionInformation.createManifest
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
这样写就可解决
<properties><java.version>1.8</java.version><mapstruct.version>1.4.1.Final</mapstruct.version></properties><dependency><groupId>org.mapstruct</groupId><artifactId>mapstruct</artifactId><version>${mapstruct.version}</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><optional>true</optional></dependency> <build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>8</source><target>8</target><encoding>UTF-8</encoding><annotationProcessorPaths><!-- 必须要加, 否则生成不了 MapperImpl 实现类 --><path><groupId>org.mapstruct</groupId><artifactId>mapstruct-processor</artifactId><version>${mapstruct.version}</version></path><path><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>1.18.20</version></path><!-- 如果是 0.1.0 有可能出现生成了maptruct的实现类, 但该类只创建了对象, 没有进行赋值 --><path><groupId>org.projectlombok</groupId><artifactId>lombok-mapstruct-binding</artifactId><version>0.2.0</version></path></annotationProcessorPaths></configuration></plugin></plugins></build>总结
以上是生活随笔为你收集整理的NullPointerException at org.mapstruct.ap.internal.processor.DefaultVersionInformation.createManifest的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 完整性校验用到常见的算法_几种常见的校验
- 下一篇: Canal 1.1.5 启动报错:cac