解决方案 一、Project Structure->modules 点击-将所有的modules删除 二、点击+号重新引入Moudle 三、搜索父文件夹下的pom文件—>OK 四、build—>rebuild project 五、子文件运行成功