Usage of API documented as @since 1.7+ less... (Ctrl+F1) This inspection finds all usages of method





程序中出现了这样的错误,查看依赖,没有缺少,单独引用也没有问题,但是最后一段代码在idea中就是错误,后来发现是打包编译设置的问题,在maven中加入了一段build代码就可以了。


<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.3</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>

猜你喜欢

转载自blog.csdn.net/dongdouzin/article/details/80050009