项目中右上角启动类红叉,Eidt configuration中MainClass路径红,下方提示 Class 'xxxApplication' not found in module 'xxx'.
首先路径均无问题,导包和依赖均正常.
尝试Eidt configuration中remove启动类重新添加,
启动类中重新导包,
重写pom文件,
重新加载reload project均无用.
最后,
解决问题.
对于图标灰色问题,
可以remove后,重新添加configuration springboot