Spring Framework source download and import eclipse

Source: Internet
Author: User
Tags deprecated

After work began to learn javaspring, a lot of places do not understand, Factory mode to manage beans, he is how to manage it, so think of the source, but the source is very difficult to do, download down, do not know where to start, spent a lot of time, are not ready, by chance to see an article on the Internet, this is done, Take it out and share it. Original address: http://blog.csdn.net/buyaore_wo/article/details/8977746

I. Preparatory work

1. Download the installation STS (SpringSource recommended), after all, the family's framework with his own IDE is the best, of course, STS is also basic eclipse,: Http://www.springsource.org/downloads/sts-ggts

2. Download and install Gradle, Spring Source build added Gradle support. Gradle Download: http://www.gradle.org/downloads, set environment variables after download: gradle_home = Gradle home directory, and add in path;%gradle_home%\bin;

3. Download and install GitHub, Spring Source managed to github:http://windows.github.com/(Windows), of course you need to register a github account, Spring GitHub escrow address: https:// Github.com/springsource/spring-framework

Two. Import Springframework to eclipse (STS)

1. Generate the Eclipse configuration.

Enter the spring source directory: The structure is as follows:

You can see that spring provides us with a script to import Eclipse and execute the script.

But after my experiment, Spring provides a script that executes in half and does not know what the reason is. We ourselves use the Gradle command to replace the script it provides to us:

Enter the spring directory and execute the command: Gradle eclipse-x: Eclipse

The first execution will take a long time, Gradle will go to download a lot of dependent libraries, the results of the execution of the report as follows, because I have been executed before the time spent not much

F:\github\spring-framework>gradle Eclipse-x: Eclipse
: Buildsrc:clean
: Buildsrc:compilejava Up-to-date
: Buildsrc:compilegroovy
: buildsrc:processresources
: buildsrc:classes
: Buildsrc:jar
: buildsrc:assemble
: Buildsrc:compiletestjava Up-to-date
: Buildsrc:compiletestgroovy Up-to-date
: Buildsrc:processtestresources Up-to-date
: buildsrc:testclasses Up-to-date
: Buildsrc:test
: Buildsrc:check
: Buildsrc:build
The Configurationcontainer.add () method has been deprecated and are scheduled to be removed
In Gradle 2.0. Please use the Create () method instead.
The groovy configuration has been deprecated and was scheduled to being removed in Gradle 2.0.
Typically, usages of ' groovy ' can simply is replaced with ' compile '. In some cases, it ma
Y be necessary to additionally configure the ' Groovyclasspath ' property of Groovycompile a
nd groovydoc tasks.
The Taskcontainer.add () method has been deprecated and are scheduled to being removed in GRADL
E 2.0. Please use the Create () method instead.
: Spring-aop:eclipseclasspath
: Spring-aop:eclipsejdtprepare
: SPRING-AOP:ECLIPSEJDT
: Spring-aop:eclipseproject
: spring-aop:eclipsesettings
: spring-aop:eclipsewstcomponent
: Spring-aop:eclipse
: Spring-aspects:eclipseclasspath
: Spring-aspects:eclipsejdtprepare
: SPRING-ASPECTS:ECLIPSEJDT
: Spring-aspects:eclipseproject
: spring-aspects:eclipsesettings
: spring-aspects:eclipsewstcomponent
: Spring-aspects:eclipse
: Spring-beans:eclipseclasspath
: Spring-beans:eclipsejdtprepare
: SPRING-BEANS:ECLIPSEJDT
: Spring-beans:eclipseproject
: spring-beans:eclipsesettings
: spring-beans:eclipsewstcomponent
: Spring-beans:eclipse
: Spring-build-src:eclipseclasspath
: Spring-build-src:eclipsejdtprepare
: SPRING-BUILD-SRC:ECLIPSEJDT
: Spring-build-src:eclipseproject
: spring-build-src:eclipsesettings
: spring-build-src:eclipsewstcomponent
: Spring-build-src:eclipse
: Spring-context:eclipseclasspath
: Spring-context:eclipsejdtprepare
: SPRING-CONTEXT:ECLIPSEJDT
: Spring-context:eclipseproject
: spring-context:eclipsesettings
: spring-context:eclipsewstcomponent
: Spring-context:eclipse
: Spring-context-support:eclipseclasspath
Download http://repo.springsource.org/libs-release/commons-logging/commons-logging/1.1.3/c
Ommons-logging-1.1.3.pom
Download http://repo.springsource.org/libs-release/commons-logging/commons-logging/1.1.3/c
Ommons-logging-1.1.3.jar
: Spring-context-support:eclipsejdtprepare
: SPRING-CONTEXT-SUPPORT:ECLIPSEJDT
: Spring-context-support:eclipseproject
: spring-context-support:eclipsesettings
: spring-context-support:eclipsewstcomponent
: Spring-context-support:eclipse
: Spring-core:eclipseclasspath
: Spring-core:eclipsejdtprepare
: SPRING-CORE:ECLIPSEJDT
: Spring-core:eclipseproject
: spring-core:eclipsesettings
: spring-core:eclipsewstcomponent
: Spring-core:eclipse
: Spring-expression:eclipseclasspath
: Spring-expression:eclipsejdtprepare
: SPRING-EXPRESSION:ECLIPSEJDT
: Spring-expression:eclipseproject
: spring-expression:eclipsesettings
: spring-expression:eclipsewstcomponent
: Spring-expression:eclipse
: Spring-instrument:eclipseclasspath
: Spring-instrument:eclipsejdtprepare
: SPRING-INSTRUMENT:ECLIPSEJDT
: Spring-instrument:eclipseproject
: spring-instrument:eclipsesettings
: spring-instrument:eclipsewstcomponent
: Spring-instrument:eclipse
: Spring-instrument-tomcat:eclipseclasspath
: Spring-instrument-tomcat:eclipsejdtprepare
: SPRING-INSTRUMENT-TOMCAT:ECLIPSEJDT
: Spring-instrument-tomcat:eclipseproject
: spring-instrument-tomcat:eclipsesettings
: spring-instrument-tomcat:eclipsewstcomponent
: Spring-instrument-tomcat:eclipse
: Spring-jdbc:eclipseclasspath
: Spring-jdbc:eclipsejdtprepare
: SPRING-JDBC:ECLIPSEJDT
: Spring-jdbc:eclipseproject
: spring-jdbc:eclipsesettings
: spring-jdbc:eclipsewstcomponent
: Spring-jdbc:eclipse
: Spring-jms:eclipseclasspath
: Spring-jms:eclipsejdtprepare
: SPRING-JMS:ECLIPSEJDT
: Spring-jms:eclipseproject
: spring-jms:eclipsesettings
: spring-jms:eclipsewstcomponent
: Spring-jms:eclipse
: Spring-orm:eclipseclasspath
: Spring-orm:eclipsejdtprepare
: SPRING-ORM:ECLIPSEJDT
: Spring-orm:eclipseproject
: spring-orm:eclipsesettings
: spring-orm:eclipsewstcomponent
: Spring-orm:eclipse
: Spring-orm-hibernate4:eclipseclasspath
: Spring-orm-hibernate4:eclipsejdtprepare
: SPRING-ORM-HIBERNATE4:ECLIPSEJDT
: Spring-orm-hibernate4:eclipseproject
: spring-orm-hibernate4:eclipsesettings
: spring-orm-hibernate4:eclipsewstcomponent
: Spring-orm-hibernate4:eclipse
: Spring-oxm:eclipseclasspath
: Spring-oxm:eclipsejdtprepare
: SPRING-OXM:ECLIPSEJDT
: Spring-oxm:eclipseproject
: spring-oxm:eclipsesettings
: spring-oxm:eclipsewstcomponent
: Spring-oxm:eclipse
: Spring-struts:eclipseclasspath
: Spring-struts:eclipsejdtprepare
: SPRING-STRUTS:ECLIPSEJDT
: Spring-struts:eclipseproject
: spring-struts:eclipsesettings
: spring-struts:eclipsewstcomponent
: Spring-struts:eclipse
: Spring-test:eclipseclasspath
: Spring-test:eclipsejdtprepare
: SPRING-TEST:ECLIPSEJDT
: Spring-test:eclipseproject
: spring-test:eclipsesettings
: spring-test:eclipsewstcomponent
: Spring-test:eclipse
: Spring-test-mvc:eclipseclasspath
: Spring-test-mvc:eclipsejdtprepare
: SPRING-TEST-MVC:ECLIPSEJDT
: Spring-test-mvc:eclipseproject
: spring-test-mvc:eclipsesettings
: spring-test-mvc:eclipsewstcomponent
: Spring-test-mvc:eclipse
: Spring-tx:eclipseclasspath
: Spring-tx:eclipsejdtprepare
: SPRING-TX:ECLIPSEJDT
: Spring-tx:eclipseproject
: spring-tx:eclipsesettings
: spring-tx:eclipsewstcomponent
: Spring-tx:eclipse
: Spring-web:eclipseclasspath
: Spring-web:eclipsejdtprepare
: SPRING-WEB:ECLIPSEJDT
: Spring-web:eclipseproject
: spring-web:eclipsesettings
: spring-web:eclipsewstcomponent
: Spring-web:eclipse
: Spring-webmvc:eclipseclasspath
: Spring-webmvc:eclipsejdtprepare
: SPRING-WEBMVC:ECLIPSEJDT
: Spring-webmvc:eclipseproject
: spring-webmvc:eclipsesettings
: spring-webmvc:eclipsewstcomponent
: Spring-webmvc:eclipse
: Spring-webmvc-portlet:eclipseclasspath
: Spring-webmvc-portlet:eclipsejdtprepare
: SPRING-WEBMVC-PORTLET:ECLIPSEJDT
: Spring-webmvc-portlet:eclipseproject
: spring-webmvc-portlet:eclipsesettings
: spring-webmvc-portlet:eclipsewstcomponent
: Spring-webmvc-portlet:eclipse
: Spring-webmvc-tiles3:eclipseclasspath
: Spring-webmvc-tiles3:eclipsejdtprepare
: SPRING-WEBMVC-TILES3:ECLIPSEJDT
: Spring-webmvc-tiles3:eclipseproject
: spring-webmvc-tiles3:eclipsesettings
: spring-webmvc-tiles3:eclipsewstcomponent
: Spring-webmvc-tiles3:eclipse

BUILD Successful

Total time:1 mins 57.462 secs

The completion of the entry into each subdirectory can see a few more files or directories, is to set up the Eclipse project and Classpath configuration as follows:

The. Settingsh folder and. Classpath and. Project are the configurations that you just built

2. Import Eclipse

Eclipse:import->

Get it done.

Spring Framework source download and 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.