原文:Spring mvc-异常javax.servlet.ServletException: Could not resolve view with name 'xxx' in servlet with name 'spring'

最近使用spring mvc开发项目,遇到一个问题: 引起该异常的原因:在mvc的配置文件中配置了: 而url http: localhost: SpringRestful services User users method delete 请求没有带扩展名,且请求的方法没有 ResponseBody签名,spring会认为你请求的结果是一个html的视图,所以才抛出了上面的异常。 解决方法如下任 ...

2015-06-08 17:04 0 22178 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM