检查两个地方
检查的地方 | 内容 |
File >> Project Structure >> Project language level | |
pom.xml | <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins> </build> |