idea+ (Error: java: source option 5 is no longer supported. Please use version 6 or higher)

Add the following configuration in pom.xml, the specific Java version depends on what you have installed

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
        <java.version>11</java.version>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>

Guess you like

Origin blog.csdn.net/zhanlong11/article/details/109957127