a . preparatory work
1. Download the installation STS (SpringSource recommended)
: Http://www.springsource.org/downloads/sts-ggts
2. Download and install Gradle, Spring source construction added to the evil Gradle
With detailed description: https://gradle.org/install/
3. Installation Configuration Complete Verification
Note I use the JDK version and the evil Gradle version , must be 1.6 (pro-test, 4.0 build failure)
4. Download and install the spring source code
Https://github.com/spring-projects/spring-framework/archive/v3.2.6.RELEASE.zip
This version must be used
Two. Import Springframework to eclipse (STS)
1. Unzip the source package
Open cmd Command Line window
CD-to-source package directory:
2. Configure build.gradle, it must be pointed out that this is a very silly configuration
Project ("Spring-webmvc-tiles3") Add a code block to the project:
< Span lang= "en-us" >eclipseclasspath { downloadsources = False; }
I can see that, ha, is to let Eclipse don't lower the source, next Spring source, but also to maintain Eclipse I don't know. Gradle What did the designer think? Who let us use other people's things? What's the way, add Bai ...
After the addition of the build.gradle looks like this:
Don't forget to save it! Otherwise, give you an error:
3. Is there any other way?
Pro-Test, direct removal of the project can also build success, is to delete this code, do not compile: spring-webmvc-tiles3
4. Finally, execute the command execution command: Gradle eclipse-x: Eclipse
After importing Eclipse, the STS of the failed device has been compiled and then rolled back ... It's all pits!
Spring Source import Eclipse (STS)