一、编译环境
操作系统: windows 10 家庭版
Gradle版本:5.6.3
SpringFrameWork版本:5.1.19.RELEASE
IDE版本:IDEA 2018.2.6
JDK版本:1.8
二、 下载源码
从github上拉取Spring-Framework的最新源代码
git clone https://github.com/spring-projects/spring-framework.git
如果github无法访问,可以从gitee上拉取代码,gitee每天都会从github上更新一次代码。
git clone https://gitee.com/mirrors/Spring-Framework.git
因为我先编译的Spring-Boot的版本2.1.19.BUILD-SPNAPSHOT,所依赖的SpringFramework版本是5.1.19.RELEASE。因此需要对切换到5.1.x分支的5.1.19.RELEASE标签,同时创建一个自己的分支myspingframework(自己研究学习,与主分支区分开)。
git checkout -b myspringframework 5.1.19.RELEASE
三、 编译
我使用的是idea.2008。
1. 创建File -> new -> project from existing source
2. 选择gradle