0x00 阅读源代码
下载源代码
- 代码仓库地址 https://gitee.com/Z201/spring-framework.git
- 阅读版本号
v5.1.5.RELEASE - 下载版本
git clone -b v5.1.5.RELEASE https://github.com/spring-projects/spring-framework.git- 由于github下载速度是在太慢了,这里用gitee克隆一个镜像。
- 下载版本
git clone -b v5.1.5.RELEASE https://gitee.com/Z201/spring-framework.git
- 官方提供的文档import-into-idea
➜ spring-framework git:(master) ./gradlew :spring-oxm:compileTestJava
Downloading https://services.gradle.org/distributions/gradle-4.10.3-bin.zip
..........................................................................
Welcome to Gradle 4.10.3!
Here are the highlights of this release:
- Incremental Java compilation by default
- Periodic Gradle caches cleanup
- Gradle Kotlin DSL 1.0-RC6
- Nested included builds
- SNAPSHOT plugin versions in the `plugins {}` block
For more details see https://docs.gradle.org/4.10.3/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :spring-beans:compileTestJava
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :spring-context:compileTestJava
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :spring-oxm:genJaxb
[ant:javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
BUILD SUCCESSFUL in 9m 18s
58 actionable tasks: 58 executed
➜ spring-framework git:(master)
如果显示BUILD SUCCESSFUL 说明构建成功了,但是由于项目太大了,所以下面就不介绍模块了。