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

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为对应的版本。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容