问题:

电脑蓝屏后,跑springboot项目报:
Module ‘hst-services’ production: java.lang.IndexOutOfBoundsException: Range [-1, -1 + 1025) out of bounds for length 1024

环境:windows11
软件:IntelliJ IDEA 2025.1 (Ultimate Edition)

解决方法

清理IDEA缓存并重启‌
蓝屏可能导致缓存文件损坏,进而引发IDE异常。

1、执行菜单操作:File -> Invalidate Caches…,选择清理缓存并重启IDEA。
在这里插入图片描述

2、重启后重新构建项目(Build -> Rebuild Project)。
在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐