org.springframework.web.servlet.PageNotFound No mapping found for HTTP request with URI [/AssetRepair/assetRepairController/test.do] in DispatcherServlet with name 'assetrepair'

web.xml文件配置:

org.springframework.web.servlet.PageNotFound  No mapping found for HTTP request with URI [/AssetRepair/assetRepairController/test.do] in DispatcherServlet with name 'assetrepair'

xxx-servlet.xml

org.springframework.web.servlet.PageNotFound  No mapping found for HTTP request with URI [/AssetRepair/assetRepairController/test.do] in DispatcherServlet with name 'assetrepair'

我们可以发现DispatcherServlet会处理“jsp”后缀的请求;而模型视图后缀也是jsp的

如果这样配置会报以下错误:

org.springframework.web.servlet.PageNotFound  No mapping found for HTTP request with URI [/AssetRepair/assetRepairController/test.do] in DispatcherServlet with name 'assetrepair'
上一篇:MVC---Case 1


下一篇:framebuffer的入门介绍-实现程序分析【转】