yeshmanthaグラインド:
intelijでのJava SDK 1.8でコンパイルしますが、自動的に示すことのJava SDK 1.5とショーにこのエラーを変更するMavenの
ダングエン:
あなたの上のpom.xml
ファイルがこれを持っている必要があり、それが1.8にMavenのコンパイラを指定しました
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
若しくは
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>