1. 程式人生 > >Intellij Idea中maven專案程式碼報錯:Usage of API documented as @since 1.8+

Intellij Idea中maven專案程式碼報錯:Usage of API documented as @since 1.8+

這個錯 出現的原因是因為今天閒來無事 便看了下jdk8的一些時間操作
結果在 操作的時候 在 iead中報錯 Usage of API documented as @since 1.8+

查閱資料後:
這樣處理即可搞定
使用快捷鍵 ctrl+alt+shift+s 出現如下介面
這裡寫圖片描述
接下來我們 選擇 Modules
這裡寫圖片描述
選擇每一項模組->sources->Language leve
這裡寫圖片描述
選擇8 -lambdas,type annotatlons etc.
如果這樣設定後 還處於報錯 那麼在設定 setting
使用快捷鍵 ctrl+alt+s
這裡寫圖片描述


選擇build,Execution,Deployment->Compiler->Java Compiler->逐一設定 即可
這裡寫圖片描述