[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!