当我运行application.java时:
Information:Using javac 1.8.0_45 to compile java sources
Information:java: Errors occurred while compiling module 'bookstore'
Information:2015/5/29 17:35 - Compilation completed with 1 error and 0 warnings in 5 sec
Error:java: Annotation processor 'org.mapstruct.ap.MappingProcessor' not found
答案 0 :(得分:4)
您可以将它添加到您的pom:
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
<scope>provided</scope>
</dependency>
这为我解决了错误。
答案 1 :(得分:0)
尝试按照这篇文章:https://www.jetbrains.com/idea/help/configuring-annotation-processing.html。
Intellij需要像默认一样定义项目配置文件。