项目导入idea以后,不识别项目是maven的项目,需要我们自己手动设置一下: 1、选中module的pom.xml 2、在pom.xml文件中右键,选择" add as maven project" 3、项目就自动识别为maven项目。