今天使用IDEA创建SpringBoot项目时候maven报错
依赖一直下载不了。后度啊度解决了此问题。再此总结一下!!!!
1、首先file–settings中的maven得设置下(这个选项好像是切断联网,不从网上下依赖,我猜的)
2、打开该settings.xml配置文件
3、在如下位置添加上一下代码
<mirrors>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
4、见证奇迹的时刻。打开pom.xml文件右键—maven—Reimport(依赖开始下载,舒服了)