idea拉取的代码没有被maven管理 1:注解飘红,import飘红 2:右键pom.xml 没有maven选项 解决办法:将springboot模块添加到maven管理 找到需要管理maven项目的pom.xml 点击OK即可,,就可以把项目让maven管理