tags: spring Source code reading # spring source reading
The spring source code compilation process itself is a learning process, do it well without arrogance or rashness
1. Download the spring source code
2. Download gradle
After testing, the gradle version, I use gradle-4.4.1, jdk 1.8 (if there are multiple local jdk1.8, pay attention to keep the same, or there will be problems)
3. The compilation process
(1) Import the spring project through idea, the first step is to annotate the following content of spring-beans.gradle

(2) Go over the wall, boy, downloaded one

The main thing is to download some jar packages. I didn’t succeed all morning, so I overcame the wall. It was quite fast.
(3) Execute the following commands, spring-core and spring-oxm will not show error classes or methods
Execute gradle objenesisRepackJar and gradle cglibRepackJar
(4) Execute compileTestJava of spring-oxm

(5) Execute the test methods of spring-core/spring-beans/spring-contexts respectively

Spring source code download and compilation Download source code:git clone --branch v5.2.8.RELEASE https://gitee.com/Z201/spring-framework.git 1, modify the settings.gradle file Add Ali Warehouse repo...
1. Spring source code compilation configuration 1.1 IDEA Kotlin plugin installation 1.2 gradle installation Configure a gradle environment variable gradle_home Path configuration item increase%GRADLE_...
Environmental preparation Spring source code download link: Git->https://github.com/spring-projects/spring-framework.git gitee->https://gitee.com/mirrors/Spring-Framework.git IDEA version: 2018-...
Spring source code compilation 1. Understand the compilation process 1) Spring source code depends on Gradle to compile 2) Different versions of Spring dependence on the Gradle version is different, b...
#Spring latest source code compilation Preparation This example is based on SpringV5.2.7Release+Gradlewapper+JDK1.8.0_131 Environmental preparation maven jdk8+ idea Source code download Enter https://...
Article Directory 1. github installation 2. Gradle installation 3. Spring source code 4. Configure the source code compilation environment 5. Compile spring source code 6. Idea imports spring source c...
Environmental preparation (this step own Baidu) maven jdk8+ idea Source address github :https://github.com/spring-projects/spring-framework It is recommended to download the 5.x Release version becaus...
Summary This article aims to explain the construction of the Spring source environment and the solution to the problems encountered during the construction process. 2. Environmental requirements Note:...
When studying the spring source code, because what you see directly from the jar package is the code after idea decompilation, there is a slight difference from the source code, and there are no comme...
Environmental preparation 1.JDK1.8 2.Gradle4.6 3. spring-framework-4.3.27.RELEASE downloaded from GitHub 4.InteliJ Idea2019.2 Compilation steps 1. Unzip and download the Spring source code and open it...