1、首先我们看到项目显示如下,项目名称上报红叉,意思是项目有错误
2、接下来我们首先是要看看是什么错误,首先打开p筠续师诈roblems查看错误,首先点击Window->Show view->other,如下图所示
3、在输入框输入pr就看到了problem,点击problem,点击ok
4、这时可以在problem中看到项目具体报错信息为Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix. store line 1 Maven Configuration Problem
5、此时我们右键这个错误,然后点击Quick Fix
6、最后点击finish就能解决问题了
7、可以看到项目上已经没有红叉了