invalidate caches
时间: 2023-11-03 12:05:51 浏览: 140
通过执行 "Invalidate Caches/Restart",可以清理IDEA中的缓存。这个操作可以修复缓存损坏或异常导致的各种错误和奇怪行为。\[1\]当你在编写项目后重新打开时,如果发现自己封装的类导入后还是爆红,可能是因为IDEA本地缓存异常,导致无法识别Maven依赖,无法找到某些类。解决方法是通过"Invalidate Caches/Restart",删除原来的缓存和索引,等待IDEA重新构建缓存和索引。\[2\]如果在打开jsp文件后发现IDEA不停地进行索引,只需要清理一下IDEA的缓存和索引即可。在菜单栏中选择"File-Invalidate Caches / Restart",然后选择"Invalidate and Restart",IDEA会重新启动,问题就会解决了。\[3\]
#### 引用[.reference_title]
- *1* [IDEA 工具中 Invalidate Caches/Restart功能详解](https://blog.csdn.net/ranbo_Q/article/details/131175077)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [有关Idea的Invalidate Caches/Restart](https://blog.csdn.net/qq_43733781/article/details/123791274)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Idea突然不停indexing的问题 && 清理idea缓存](https://blog.csdn.net/weixin_30273175/article/details/99427649)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文