【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more..

 在idea中写代码过程中。有这种报错出现:

Usage of API documented as @since 1.8+ more..

【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more.._第1张图片

 

 

 

修改JDK版本的几个地方

【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more.._第2张图片

 

【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more.._第3张图片

 

 【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more.._第4张图片

 

 

最后,在pom.xml文件中添加:

 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-compiler-pluginartifactId>
                <version>3.6.0version>
                <configuration>
                    <source>1.8source>
                    <target>1.8target>
                configuration>
            plugin>
        plugins>
    build>

 

 

即可解决问题了。

【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more.._第5张图片

 

你可能感兴趣的:(【IntelliJ IDEA】代码中出现Usage of API documented as @since 1.8+ more..)