[Original] Spring Source Code Analysis Series-import source code to Eclipse and springeclipse

Source: Internet
Author: User

[Original] Spring Source Code Analysis Series-import source code to Eclipse and springeclipse

  • Development Environment:

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-coreRun gradle cleanidea eclipseIfE: 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:

 

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.