Before we start with the first flow, we need to get the application set up to use Spring MVC.
We use Maven to manage our dependencies. The following steps are involved in setting up a simple web application:
- Add a dependency for Spring MVC.
- Add DispatcherServlet to web.xml.
- Create a Spring application context.