We instruct Spring to create a bean for an
InternalResourceViewResolver class, but why? Who is going to use this bean? What is the role of the
InternalResourceViewResolver bean in Spring MVC? Find the answer to these questions through the following exercise:
DispatcherServlet-context.xml; you can find this file under the
src/main/webapp/WEB-INF/spring/webcontext/directory in your project.
prefixproperty value of the
InternalResourceViewResolverbean as follows:
<property name="prefix" value="/WEB-INF/views/" />
webstoreproject again and enter the URL
http://localhost:8080/webstore/. You will see an HTTP Status 404 error message in your browser as shown in ...