Spring Source code parsing--spring source import eclipse

Source: Internet
Author: User
Tags git clone

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

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.