美文网首页
Intellij Idea中maven项目代码报错:Usage

Intellij Idea中maven项目代码报错:Usage

作者: 傲慢二锅头 | 来源:发表于2017-08-15 15:38 被阅读0次

Intellij Idea中maven项目代码报错:Usage of API documented as @since 1.8+,当使用intellij idea开发maven项目时,代码有时报错为:Usage of API documented as @since 1.8+ ,此时需要指定模块的Language Level.

步骤:

File --> Project Structure --> Project Settings --> Modules

选择对应的module,设置source对应的Language level 为报错提示对应的版本,此处我的显示需要api支持1.8+,所以,设置级别为8 - Lambdas, type annotation etc.应用后即可解决问题。

再操作:Settings --> Build,Extension,Deployment --> Compile -->JavaCompile 设置对应module的Target bytecode version为对应的版本。

相关文章

网友评论

      本文标题:Intellij Idea中maven项目代码报错:Usage

      本文链接:https://www.haomeiwen.com/subject/qocvrxtx.html