一.下载spring源码
git clone git@github.com:spring-projects/spring-framework.git
二.预编译
参考import-into-idea.md文件
1. Precompile `spring-oxm` with `./gradlew :spring-oxm:compileTestJava`
2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
3. When prompted exclude the `spring-aspects` module (or after the import via File-> Project Structure -> Modules)
4. Code away
这里翻译一下
1.进入进入spring-framework目录,执行命令 ./gradlew :spring-oxm:compileTestJava
2.启动idea,File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle
3.等待编译完成