class never used 從未使用過的類 出現下划線
ctrl+alt+s
setting ---editor-inspections--unused declaration
method is never used 接口提示報錯信息
Typo: In word 拼寫檢查
xml 中No data sources configured 和 SQL dialect detection
xml背景色去掉
下面是轉載的
-
<statement> or DELIMITER expected, got 'id'
-
- 這個錯誤是發生在MyBatis的Mapper的XML文件的sql節點上,第一個字段是什么錯誤中最后一個單引號內部就是什么,解決方案,干掉方框中的
sql|
即可,點擊這里查看問題答案來源:
問題1圖解
- 這個錯誤是發生在MyBatis的Mapper的XML文件的sql節點上,第一個字段是什么錯誤中最后一個單引號內部就是什么,解決方案,干掉方框中的
-
Unable to resolve table '<table-name>'
問題2-
解決方案:勾掉Unresolved refereence
問題2圖解
-
-
Result type doesn't match for xxx
問題3-
解決方案:勾掉Mapper Method inspection
問題3圖解
-
-
'(', ':=', '=' or '[' expected, got 'id'
問題4- 解決方案:去掉 where之前的
,
即可
- 解決方案:去掉 where之前的
-
Usage of API documented as @since 1.6+
問題5-
解決:
問題5圖解
-
-
Class '<class-name>' is never used
-
使用idea的時候發現很多多余的警告,可能是在Eclipse中習慣了吧,反而覺得Idea管的有點寬,一個類不用報警告,一個方法不用會報警告,但是我覺得這點Eclipse處理的還是比較得當的,public的可能是util中的,難不成現在刪了?后面需要再加???
問題6 -
解決:
問題6圖解
-
-
Variable '<var-name>' initializer 'null' is redundant
問題7-
解決(光標放在null上,然后Alt+Enter就可以彈出提示):
-