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.

  1. Launch the New Spring Project wizard by selecting File | New | Spring Project from the menu.
  2. Enter WebProject as 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.
  3. In the Project Settings dialog box, enter com.example.webproject as the top-level package, then click on the Finish button. The project will be created and will appear ...

Get Instant Spring Tool Suite now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.