1创建maven
新建spring文件夹
idea file open 选择spring
new module maven
(因为在这歩没有选自己的本地仓库)
在pom.xml中加入
然后右键maven选择Download Sources and Documentation
这里选择自己的Manven和自己仓库
在Manven\apache-maven-3.5.2\conf settings 中
在 标签中添加配置镜像下载地址
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
弄好了记得刷新资源有个m标志点击刷新