“Usage of API documented as @since 1.8+”報錯的解決辦法

出現如圖錯誤:
在這裏插入圖片描述
報錯信息:
Usage of API documented as @since 1.8+ less… (Ctrl+F1)
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

出現場景
IDEA 編譯中出現
原因:jdk版本跟編譯使用版本不一致導致

解決方案:
project 的pom文件中添加

<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章