(转)“Usage of API documented as @since 1.8+”报错的解决办法

【转载原因:解决问题】

【转载原文:https://blog.csdn.net/a499477783/article/details/78967586/

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/a499477783/article/details/78967586
收起
出现如图错误: 

报错信息: 
Usage of API documented as @since 1.8+ 
This inspection finds all usages of methods that have @since tag in their documentation. 
This may be useful when development is performed under newer SDK version as the target platform for production.

问题原因:

出现该问题的原因是由于使用了JAVA8的新特性,但是Language Level(最低可支持的版本)比较低,无法支持这些特性。比如设置的Language Level为6.0,可是却使用了8.0/9.0的新特性,6.0无法解析这些特性,因此IDE会报错来提醒我们。

解决方法:

如果对最低支持版本有要求,没办法改动的话,那就只能放弃使用报错部分的代码。 
如果对支持版本没有要求的话,可以改动IDE的Language Level来消除错误。

使用ctrl+shift+alt+S,打开Project Structure,选中侧边栏的Modules,在Sources窗口中修改Language Level(必须大于等于报错信息给出的level)。改动后,IDE错误消失。 


Maven项目每个Module都有单独的pom.xml,如果不在pom.xml中进行配置,则默认将Module的Language Level设置为5。所以要在pom.xml文件中添加插件进行配置。

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


 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
End-to-end Search and Analytics About This Book Solve your data analytics problems with the Elastic Stack Improve your user search experience with Elasticsearch and develop your own Elasticsearch plugins Design your index, configure it, and distribute it — you'll also learn how it works Who This Book Is For This course is for anyone who wants to build efficient search and analytics applications. Some development experience is expected. What You Will Learn Install and configure Elasticsearch, Logstash, and Kibana Write CRUDE operations and other search functionalities using the Elasticsearch Python and Java Clients Build analytics using aggregations Set up and scale Elasticsearch clusters using best practices Master document relationships and geospatial data Build your own data pipeline using Elastic Stack Choose the appropriate amount of shards and replicas for your deployment Become familiar with the Elasticsearch APIs In Detail Elasticsearch is a modern, fast, distributed, scalable, fault tolerant, open source search and analytics engine. It provides a new level of control over how you can index and search even huge sets of data. This course will take you from the basics of Elasticsearch to using Elasticsearch in the Elastic Stack and in production. You'll start with the very basics: Elasticsearch terminology, installation, and configuring Elasticsearch. After this, you'll take a look at analytics and indexing, search, and querying. You'll learn how to create maps and visualizations. You'll also be briefed on cluster scaling, search and bulk operations, backups, and security. Then you'll be ready to get into Elasticsearch's internal functionalities including caches, Apache Lucene library, and its monitoring capabilities. You'll learn about the practical usage of Elasticsearch configuration parameters and how to use the monitoring API. You'll discover how to improve the user search experience, index distribution, segment statistics, merging, and more. Once you have mastered this, you'll dive into end-to-end visualize-analyze-log techniques with Elastic Stack (also known as the ELK stack). You'll explore Elasticsearch, Logstash, and Kibana and see how to make them work together to build fresh insights and business metrics out of data. You'll be able to use Elasticsearch with other de facto components in order to get the most out of Elasticsearch. By the end of this course, you'll have developed a full-fledged data pipeline. This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products: Elasticsearch Essentials Mastering Elasticsearch, Second Edition Learning ELK Stack Style and approach This course aims to create a smooth learning path that will teach you how to effectively use Elasticsearch with other de facto components and get the most out of Elasticsearch. Through this comprehensive course, you'll learn the basics of Elasticsearch and progress to using Elasticsearch in the Elastic stack and in production. Table of Contents Chapter 1. Module 1 Chapter 2. Understanding Document Analysis and Creating Mappings Chapter 3. Putting Elasticsearch into Action Chapter 4. Aggregations for Analytics Chapter 5. Data Looks Better on Maps: Master Geo-Spatiality Chapter 6. Document Relationships in NoSQL World Chapter 7. Different Methods of Search and Bulk Operations Chapter 8. Controlling Relevancy Chapter 9. Cluster Scaling in Production Deployments Chapter 10. Backups and Security
YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值