(1)问题描述如下:
错误定位到:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name'org.springframework.web.servlet.view.InternalResourceViewResolver' defined in class path resource [springmvc.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition
(2)问题原因:bean配置有误,不存在所配置的bean或者写错,或其他(未明确)
定位错误:这里原因是:这里应把name写成class。
(3)解决方案:将name改成class即可。
1.1、问题:配置正常,但出现找不到jsp文件的问题:
(1)问题描述:success.jsp文件存在,但是服务器找不到文件;
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
(2)问题原因:WEB-INF文件下的jsp文件,用户是不能直接访问到的,应该是受某种保护的。
(3)解决方案:将jsp文件移动WebContent文件目录下,并修改配置的解析路径即可。