Intellij Idea中maven项目代码报错:Usage of API documented as @since 1.8+

来源:互联网 发布:上海招聘seo引擎优化 编辑:程序博客网 时间:2024/05/17 09:03

如题,当使用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 --> Java Compile 设置对应module的Target bytecode version为对应的版本。

阅读全文
0 0
原创粉丝点击