"Original" Spring Source Analysis Series-Import source to eclipse

Source: Internet
Author: User
Tags git clone

    • Development environment:

System: windows7.64 bit; JDK version: 1.7; Eclipse version: Mars release (4.5.0); Gradle version:gradle-2.4.1.2; Spring Source: 3.2x.

    • Download Spring Source
    1. The first step must be to download the source code, because it is the source of research spring, so I am directly download to my local; ' Go to GitHub to download the spring source code (or download it via git clone. Of course, if the computer has a GitHub client or similar tools installed at this point, you can choose to download the Mater branch, or click Tags to choose the release version. (I chose the 3.2x version, because I have seen online earlier version of the change is small, the most important is the 3.2 version of the compiler relatively stable)

2. After the download is successful, unpack the compressed package to the specified directory, and the spring core project is included, such as SPRING-CORE,SPRING-CONTEXT,SPRING-JDBC. The source code will not exceed 20M in total.

3. It is not possible to import eclipse directly at this time because these projects have not been compiled and need to be compiled by Gradle to be recognized by eclipse, so it must be installed beforegradle插件,安装gradle教程可以参考网上文章,和配置maven环境一样的步骤;配置成功后通过cmd进入到指定的项目根目录下执行 gradle cleanidea eclipse(比如我想编译spring-core,我的项目位置在E:/spring/spring-core,则需要进入到E:/spring/spring-core下执行 gradle cleanidea eclipse,如果在E:/spring 这个目录下执行的话会把所有的spring模块都进行编译)。

4. After the compilation is successful, you can import to eclipse as shown below.

5. Import the compiled modules directly into Eclipse, and the full imports are as follows:

"Original" Spring Source Analysis Series-Import source to eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.