上QQ阅读APP看书,第一时间看更新
Basic setup
Before we start with the first flow, we would need to get the application set up to use Spring MVC. In the next section, we will start by understanding how to set up Spring MVC in a web application.
We are using 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.