UsageofAPIdocumentedas@since1.8+

编程

Usage of API documented as @since 1.8+ 

this may useful when development is performed under newer sdk version as the target platform for production

pom.xml中的配置是:

        <plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.8.0</version>

</plugin>

方法一:打开Project Structure,选中侧边栏的Modules,在Sources窗口中修改Language Level(必须大于等于报错信息给出的level)

方法二:修改pom.xml为

        <plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.8.0</version>

<configuration>

<source>11</source>

<target>11</target>

</configuration>

</plugin>

 

以上是 UsageofAPIdocumentedas@since1.8+ 的全部内容, 来源链接: utcz.com/z/510730.html

回到顶部