Springboot下载依赖速度慢
原因:maven默认使用国外远程仓库来加载依赖,导致下载速度过慢甚至失败。
解决方案:使用阿里云镜像。

在setting.xml中添加:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
重启idea并reload maven。

浙公网安备 33010602011771号