处理idea使用git拉的springboot项目不maven工程的问题Non-managed pom.xml file found:

处理idea使用git拉的springboot项目不maven工程的问题Non-managed pom.xml file found:,第1张

处理idea使用git拉的springboot项目不maven工程的问题Non-managed pom.xml file found:

如下图,在git上刚刚拉下载来的springboot项目,左侧的结构中src中的java文件和resource文件都没有被识别,右侧也没有maven功能栏位;项目无法运行;

解决:
导入项目的时候要注意,刚导入的springboot项目时,idea会提示转换为maven工程,这个时候被忽略没点的话就会出现上面的情况;可以删除代码冲下拉一下,然后再提示这个d窗的时候点击一下add as maven… 就可以了;

目录和右侧导航栏会自动出现;

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5077548.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-16
下一篇 2022-11-16

发表评论

登录后才能评论

评论列表(0条)

保存