原文: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