I. Preface
It is well known that spring is strong. Spring is used in almost all enterprise-level development. In the daily development, we only know the spring configuration, as well as the simple use of the scene. There is no in-depth understanding of the code it implements. It is helpful to read the source of spring in our free time, and we still have a lot of help to improve our own ability. Here's a summary of the specific actions that spring source imports into eclipse.
Two. Features of spring
The core of spring is the IOC (inversion of control) and AOP (tangent-based programming)
Transaction management uses: declarative transactions
Provides convenient support for a variety of mainstream platforms
Three. Environment configuration
jdk:1.6 or later
GitHub
Grable
Four. Source code Download
1. Download
Spring's source code is managed by the GitHub version controller, so use git directly clone spring source to Local: Git clone git://github.com/springsource/ Spring-framework.git
Locate the Git installation directory, go to the bin directory to run Tclsh85.exe, and enter the command directly to download
Download complete, check in Git\bin
2. Compiling
The compile process, where the so-called compilation is compiled Spring-framework project files with the Gradle tool (like the Gradle tool and ant Auto-build tool), the main thing to do is to download the jar packages that spring relies on for each module, a process that is typically very slow , may be because the resources are outside the wall, and may be a long time to download the jar package, the direct CTRL + C exit the compile command and then execute the command again, for the download has been downloaded since the package will not be downloaded again, so the compilation process and can be disconnected with the effect of the connection.
① into the source directory execution: Gradle eclipse-x: Eclipse
The build process is slow and needs to be patiently awaited.
② directly through the import of eclipse into the spring-framework source directory
Spring Source code parsing--spring source import eclipse