参考:https://blog.csdn.net/weixin_30657541/article/details/99613258 整体思路:先克隆下来,然后再选择maven结构导进去 1、clone代码 2、重新导入 关闭这个项目,重新导入。 File->New->Project from Existing Sources...... 找到刚才的项目的所在地址: 在接下来的弹出框里点击 Import project from external model 并选中maven。 一直Next即可。