Creating a Spring MVC project (Must know)
This recipe will guide you through the creation of a simple Spring MVC web application, and will show you how to deploy and run your application in a servlet container.
How to do it...
Let's create our new project using a project template and update our project's Spring libraries.
- Launch the New Spring Project wizard by selecting File | New | Spring Project from the menu.
WebProjectas the project name and select the Spring MVC Project template. Click on the Next button. Allow STS to download the template if it has not already done so.
- In the Project Settings dialog box, enter
com.example.webprojectas the top-level package, then click on the Finish button. The project will be created and will appear ...