It is now time to apply all the previous recipes to create a working Spring MVC setup. Applying Inversion of Control and Dependency Injection, our main goal now is to build a working baseline project with an XML-based container running on top of the Servlet container of our Tomcat 9 application server. This recipe will feature MVC components of Spring 5.0 and explain how this MVC works together with the servlet components.
Create a new project ch02-web.xml
using STS Eclipse 8.3. Configure the Maven and deployment descriptor as per the recipe, Implementing the Spring Container using XML. Once all configuration errors are bug-fixed, perform the following steps to create a Spring MVC backbone.