[Original] Spring Source Code Analysis Series-import source code to Eclipse and springeclipse
System: Windows 7.64-bit; jdk version: 1.7; eclipse version: Mars Release (4.5.0); Gradle version: gradle-2.4.1.2; Spring source code: 3.2x.
- Download Spring source code
2. After the download is successful, open the compressed package and decompress it to the specified directory. spring core projects are included, such as spring-core, spring-context, and spring-jdbc. The source code cannot exceed 20 mb in total.
3. At this time, you cannot directly import eclipse. Because these projects have not been compiled, it must be compiled by gradle before they can be recognized by eclipse. Therefore, you must installThe gradle plug-in. For the gradle installation tutorial, refer to the online articles in the same steps as configuring the maven environment. After the configuration is successful, run the command in the root directory of the specified project through cmd.Gradle cleanidea eclipse (for example, if I want to compile spring-core, my project is located in E:/spring-coreE:/spring/spring-core
Run gradle cleanidea eclipse
IfE: In the/spring directory, all the spring modules will be compiled.
).
4. After compilation is successful, as shown in, you can import it to eclipse at this time.
5. Directly import the compiled modules to eclipse. The complete import is as follows: