1,在pom.xml中更改maven版本
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
2,在IntelliJ IDEA中重新导入所有Maven项目
Shift + ctrl + A 查找Reimport All Maven Projects
1,在pom.xml中更改maven版本
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
2,在IntelliJ IDEA中重新导入所有Maven项目
Shift + ctrl + A 查找Reimport All Maven Projects