Tutorial 5 Application Servlet XML
You can find in this video tutorial. * What is Application Servlet XML? * How to define resource directory in spring mvc?
Application Servlet XML
- ServletContext.xml: It is a servlet level configuration file. Each application context can have multiple servlet context files. It holds all the configurations for the whole servlet application.
- InternalResourceViewResolver Bean: By this resolver, we tell the servlet application about path of JSP views under the WEB-INF. Controllers always access them. It takes prefix for the name path and suffix for the file name.