Spring MVCís key component is the DispatcherServlet. This servlet that functions as Spring MVCís front controller. Like any servlet, DispatcherServlet must be configured in the web applicationís web.xml file. If you need to setup the Dispatcher Servlet it is relatively straightforward. Below is what needs to be added to the web.xml file.