解决方案:A->删除.idea文件,重新导入IdeaB->删除整个项目,重新下载导入IdeaC->Project Structure Module(对应的module)重新设置source rootD->检查pom.xml是否出错,如主pom.xml中的<modules>标签是否包含对应的子模块等