把IDEA里面索引错误的JDK版本选项删掉,参考如下博客:
https://blog.csdn.net/weixin_46168749/article/details/120477614
新版IDEA2022的jdk.table.xml文件的默认位置:
C:\Users\username\AppData\Roaming\JetBrains\IntelliJIdea2022.2\options
把IDEA里面索引错误的JDK版本选项删掉,参考如下博客:
https://blog.csdn.net/weixin_46168749/article/details/120477614
新版IDEA2022的jdk.table.xml文件的默认位置:
C:\Users\username\AppData\Roaming\JetBrains\IntelliJIdea2022.2\options