[Spring Tool Suite of development tools] 6. Use Spring Tool Suite to simplify your development and suitespring

Source: Internet
Author: User

[Spring Tool Suite of development tools] 6. Use Spring Tool Suite to simplify your development and suitespring

If you are a person who likes to use spring, you may enjoy the powerful features of spring and be depressed about all kinds of configurations, especially for versions with large differences, there will be differences in configuration files. Of course, you can spend a lot of time searching for relevant information online. When you are preparing to use a higher version of spring, however, this will make people feel annoyed. In fact, spring has long realized this and provided a good solution for this, that is, based on Eclipse, spring provides an integrated Spring Tool Suite development Tool for Spring development. With this Tool, you can easily generate a spring project, such as a web project, the most exciting thing is that the configuration files in the project are automatically generated for you, and you no longer have to worry about the configuration file format and various configuration files.

Official Spring Tool Suite is:

Http://www.springsource.org/downloads/sts-ggts

. Download and decompress the package. In the springsource \ sts-3.1.0.releasedirectory, sts.exe is Spring Tool Suite. Double-click it and you will find that it is actually the same as Eclipse, the difference is that there are more spring customization.

The following describes how to create a Spring Web project.

Choose File> New> Project ..., In the pop-up window, select Spring Template Project,

 

Next,

Select Spring MVC Project. If this is the first creation, the related packages or templates may be automatically downloaded. Ignore this, for example:

Enter the project name, such as springMVC, the top-level package name shown in, and click Finish.

In this way, a spring web project is created, such:

See some familiar configuration files and jsp and java classes. This is what a basic spring web project should have, now, you no longer have to spend time creating and configuring these items.

However, it should be noted that this project is a maven structure, which requires you to understand maven.

When releasing your web project, Spring Tool Suite was already very thoughtful for you! In the generated pom. xml, you can see the following lines:

<GroupId> com. zihou </groupId>
<ArtifactId> springTest </artifactId>
<Name> springMVC </name>
<Packaging> war </packaging>
<Version> 1.0.0-BUILD-SNAPSHOT </version>

Run the maven packaging command, will generate a springTest-1.0.0-BUILD-SNAPSHOT.war file under the target directory, is the file you want to deploy!

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.