
NOTE: Be careful when selecting the package name, because the last element ( springmvc in ) will be used as artifactId in Maven project file ( pom.xml) and as context path of the application. From main menu, select File > New > Spring Template Project: In the New Template Project dialog, select Spring MVC Project: Click Next, it requires downloading an update of the template (for the first time you use this template or whenever an update available): Click Yes to download the update, it should process quickly and then bring the New Spring MVC Project: In this dialog, enter the following information: Creating a Spring MVC project in Spring Tool Suite IDENow let’s play with the Spring Tool Suite IDE to see how it leverages Spring application development.Start STS in your own workspace and make sure the current perspective is Spring (default). View: physical view files which can be JSP, HTML, XML, Velocity template, etc.ģ.

View Resolver: finds the physical view files from the logical names.To know which view will be rendered, the controller consults the View Resolver. The output can be attached to model objects which will be sent to the view. Controller: is responsible to process the requests by calling other business/service classes.The mapping between request URLs and controller classes is done via XML configuration or annotations. Handler Mapping: is responsible to find appropriate controllers that handle specific requests.The dispatcher servlet intercepts all requests coming to the application and consults the Handler Mapping for which controller to be invoked to handle the requests.


As its name says, the Spring MVC framework is based on the Model - View - Controller (MVC) design pattern which separates the application’s logic into the three layers Mode, View and Controller.
