在使用创建SpringBoot项目时,spring-boot-starter-parent报红,如图
解决方法
File -> Invalidate Caches / Restart… -> Invalidate and Restart
总结
这相当于把IDEA清除缓存重启了,这只是其中一种方法,也是最简单的。
此时问题还没完全解决
会发现spring-boot-maven-plugin还是报红。
此时把pom.xml文件最上方spring-boot-starter-parent版本号拿来,重新加载即可。