??作者簡介:大家好,我是小虛竹,Java領域優質創作者🏆,CSDN博客專家認證🏆,華為云享專家認證🏆
??技識訓,該賞
??點贊 👍 收藏 ?再看,養成習慣
Intellij IDEA使用教程相關系列 目錄
問題:PSI and index do not match
問題
event Log里顯示 PSI and index do not match
解決方案
File–> Invalidate caches /restart


解決方案就是上述截圖的步驟,清除快取,
問題:Error:java: Compilation failed: internal java compiler error
問題
Error:java: Compilation failed: internal java compiler error
解決方案
解決方案1:

要是沒有跟圖上一樣的呢,就點擊右邊的把自己專案的模塊添加上,選擇自己專案需要的jdk對應版本,再次編譯就可以啦,
解決方案2:
在setting–>Build,Execution,Deployment–>Compiler 中找到build process heap size(Mbytes):700改為1024(視情況而定)修改堆大小

問題:pom.xml提示Element connectors is not allowed here
問題
pom.xml提示Element connectors is not allowed here
解決方案
解決方案1:
重啟IDEA就解決了
原因:這可能是Intellj軟體的一個bug,有時候它不能正確的識別一些配置屬性(即使相應的插件有這個屬性)
只出現過一次,所以沒有截圖,可惜了
解決方案2:
粉絲分享的方案:
重建一個pom copy原pom里的內容到新pom,實測有效
問題:出現private field ‘xxx‘ is never assigned
問題
在IDEA編譯器里,spring專案中使用@Autowired注解,出現private field ‘xxx’ is never assigned警告

解決方案
解決方案:
-
在變數上單擊使游標在變數上.
-
按Alt+Enter快捷鍵,顯示

-
上下鍵選中回車或者滑鼠單擊途中高亮的那個選項即可.
今天是持續寫作的第 20 / 100 天,
可以關注我,點贊我、評論我、收藏我啦,
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/356152.html
標籤:其他
