1:输入网址https://github/,搜索Spring

 

按stars排序:

 

 

2:选择下载Spring的版本

 

3:下载源码

3.1:通过Git客户端图形界面下载

Open in Desktop:

 

选择用GitHub打开:

 

选择源码的保存路径:

 

开始下载:

 

下载完成:

 

 

3.2:通过Git Shell命令行下载

 

打开Git Shell:

 

切换到要保存源码的路径:

 

复制源码的下载地址:

 

输入命令,开始下载:

若这里出现以下异常:

 

fatal: unable to access 'https://github/spring-projects/spring-framework.git/': error setting certificate verify locations:
CAfile: C:\Program Files\Git\mingw64/bin/curl-ca-bundle.crt
CApath: none

 

用 git代替https,如 https://github/spring-projects/spring-framework.git

改为git://github/spring-projects/spring-framework.git

 

 

下载完成:

 

 

更多推荐

通过GitHub下载Spring源码