删除项目中的.mvn文件夹就可以打开了
然后发现这个错误
Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.7.9 from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.7.9 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): Connection reset
切换maven仓库镜像为
https://maven.aliyun.com/repository/public
然后重启项目就可以了