The idea jdk version of the problem

Problem Description:

 

 

 

 solve:

 

 

 

 

 

 

 

 

 

 

 Consistent version check whether the above.

Not on then check the following:

 

 

 If the above method does not work, then it is recommended that you change about maven compiler level plug-pom file, you can search all pom.xml, 1.6 key words, to see out.

  <profiles>
        <profile>
            <id>jdk1.7</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <jdk>1.7</jdk>
            </activation>
            <properties>
                <maven.compiler.source>1.7</maven.compiler.source>
                <maven.compiler.target>1.7</maven.compiler.target>
                <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
            </properties>
        </profile>
    </profiles>

 

 

 

 

Guess you like

Origin www.cnblogs.com/lvhouhou/p/11976151.html