注意: 新项目中Annotation Processors需要重新设置
-
设置ideal支持Annotation Processors
-
-
-
<plugin>
-
<groupId>org.apache.maven.plugins</groupId>
-
<artifactId>maven-compiler-plugin</artifactId>
-
<version>3.6.1</version>
-
<configuration>
-
<source>1.7</source>
-
<target>1.7</target>
-
<encoding>UTF-8</encoding>
-
<annotationProcessorPaths>
-
<path>
-
<groupId>org.projectlombok</groupId>
-
<artifactId>lombok</artifactId>
-
<version>1.16.14</version>
-
</path>
-
</annotationProcessorPaths>
-
</configuration>
-
<executions>
-
<execution>
-
<id>default-compile</id>
-
<phase>compile</phase>
-
<goals>
-
<goal>compile</goal>
-
</goals>
-
</execution>
-
</executions>
-
</plugin>
阅读(682) | 评论(0) | 转发(0) |