Error:java: Target level '1.7' is incompatible with source level '1.8'. A target level '1.8' or bett

Error:java: Target level '1.7' is incompatible with source level '1.8'. A target level '1.8' or better is required

第一次使用ideal 项目运行报错 编译级别不对

修改改一下pom文件中的maven插件编译级别,可以通过搜索所有的pom.xml,1.7这个关键词,换成 1.8 就看出来

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

你可能感兴趣的:(Java异常)