高级Java程序员必备:《IDEA问题库》常见问题及解决方案,提升开发效率(JAVA 小虚竹)

??技术活,该赏

??点赞 ?? 收藏 ?再看,养成习惯

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:

问题: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警告

  • 上下键选中回车或者鼠标单击途中高亮的那个选项即可.

  • 今天是持续写作的第 20 / 100 天。
    可以关注我,点赞我、评论我、收藏我啦。

    文章知识点与官方知识档案匹配,可进一步学习相关知识Java技能树首页概览92732 人正在系统学习中

    声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

    上一篇 2021年10月7日
    下一篇 2021年10月7日

    相关推荐