第一步: 选择左上角的File,在出来的下拉框中选择settings。 第二步: 搜索Maven中的Importing,将Import Maven project automatically选项勾选,表示接受Maven的自动导入。