Spring Source import Eclipse (STS)

Source: Internet
Author: User

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)

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.