Tutorial by Examples

This is the important configuration file where we need to specify the ViewResolver and View components. The context:component-scan element defines the base-package where DispatcherServlet will search the controller class. Here, the InternalResourceViewResolver class is used for the ViewResolver. ...
In this XML file, we are specifying the servlet class DispatcherServlet that acts as the front controller in Spring Web MVC. All the incoming request for the HTML file will be forwarded to the DispatcherServlet. <?xml version="1.0" encoding="UTF-8"?> <web-app version...

Page 1 of 1