情况一:pom.xml文件没有报红,但是maven窗口的Dependencies报红: 步骤: 将报红的依赖在pom.xml文件中注释或者先删掉刷新 pom.xml文件(reimport 依赖)重新写入先前报红的依赖