Configuring a Spring MVC Application - Part 1
Learn how to configure a Spring MVC application.
We'll cover the following
In the Spring MVC architecture, any request coming from the browser would go to the front controller (dispatcher servlet), which sends it to a controller or a JSP. To migrate the web application, we will add the Spring MVC dependency, configure the dispatcher servlet in web.xml
and create a configuration file for the dispatcher servlet.
1. Spring MVC dependency
To use Spring MVC functionality in our application, add the following dependency to the pom.xml
file:
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.