设置为Maven项目步骤: 选中项目的根pom.xml文件 -> 右键(Add as Maven Project) 解除项目为Maven项目步骤: 选中项目的根pom.xml文件 -> 右键(Maven -> Unlink Maven Projects)