I. Preparatory work
1. Download and install STS (SpringSource recommended), after all, the family's framework with his own IDE is the best, of course, STS is also basic eclipse, download address: Http://www.springsource.org/downloads/sts-ggts
2. Download and install Gradle, Spring Source build joined the Gradle support. Gradle Download: http://www.gradle.org/downloads, set environment variable after download: gradle_home = gradle main directory, and add in path;%gradle_home%\bin;
3. Download and install GitHub, spring source code hosted to github:http://windows.github.com/(Windows), of course, you need to register GitHub account, spring GitHub hosting address: https:// Github.com/springsource/spring-framework
two. Import springframework into Eclipse (STS)
1. Generate Eclipse configuration.
Enter the spring source directory: structure as follows:
You can see that spring provides us with the script to import Eclipse, and execute the script.
But after my experiment spring provided a half of the script to run the problem without knowing why. We use the Gradle command to replace the script it provides to us:
Enter the spring directory, execute command: gradle eclipse-x: Eclipse
The first execution will take a long time, Gradle will go to download many dependent libraries, the results of the implementation of the report are 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. Use the Create () method instead.
The groovy configuration has been deprecated and is scheduled to being removed in Gradle 2.0.
Typically, usages of ' groovy ' can simply be replaced with ' compile '. In some cases, it ma
Y is necessary to additionally configure the ' Groovyclasspath ' of Groovycompile A
nd groovydoc tasks.
The Taskcontainer.add () method has been deprecated and are scheduled to being removed in GRADL
E 2.0. 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 be seen a few more files or directories, is set up Eclipse project and Classpath configuration as follows:
. settingsh folders and. Classpath and. Project are the configurations that you just built
2. Import Eclipse
Eclipse:import->
Finish the call.