Fügen Sie Java 8 Support zu POM hinzu
<!-- Force Eclipse and Maven to use a Java 8 JDK compiler-->
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
Joyous Jay