一、安装github
下载地址http://github-windows.s3.amazonaws.com/GitHubSetup.exe,完成后安装会出现gitshell和github
二、下载spring源码
https://github.com/spring-projects/spring-framework/tree/3.2.x,选择master分支以及版本号,复制地址,然后在gitshell上新建目录,且切换到对应目录上
C:\Users\QINP\Documents\GitHub> git config --global user.name "Sezioo"
C:\Users\QINP\Documents\GitHub> git config --global user.email "791360277@qq.com"
C:\Users\QINP\Documents\GitHub> cd d:
D:\> mkdir spring-projects
目录: D:\
Mode LastWriteTime Length Name---- ------------- ------ ----
d----- 2018/7/12 22:56 spring-projects
D:\> cd .\spring-projects\
D:\spring-projects> git init
Initialized empty Git repository in D:/spring-projects/.git/
D:\spring-projects [master]> touch readme
D:\spring-projects [master +1 ~0 -0 !]> cd /
D:\> mkdir gitSource
D:\> cd .\gitSource\
D:\gitSource> git clone https://github.com/spring-projects/spring-framework.git
三、安装gradle,对下载源码进行编译、导入
从www.gradle.org/downloads页面下载Gradle,然后设置环境变量。
切换到需要编译的工程源码目录执行,gradle cleanidea eclipse。