-
<build>
-
<plugins>
-
<plugin>
-
<groupId>org.apache.maven.plugins</groupId>
-
<artifactId>maven-compiler-plugin</artifactId>
-
<version>2.1</version>
-
<configuration>
-
<source>1.7</source>
-
<target>1.7</target>
-
</configuration>
-
</plugin>
-
</plugins>
-
</build>
然后重新update maven就可以解决该问题
来自:https://blog.csdn.net/ludengji/article/details/21299987?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.4242