would dispatch back to the current handler URL [/doLogin] again. Check your ViewResolver setup!

Plank.H發表於2020-12-28

前後臺分離開發,前端表單型別和資料庫表名稱不一致報錯

第一次前後端分離專案開發,
先把後端開發完成,測試,部署
然後開發前端.

get請求正常,post請求出錯

在這裡插入圖片描述
報URL異常,檢查跨域請求問題

查了資料發現沒錯,用別的前端請求伺服器請求報同樣的錯誤,檢查後端資料傳輸問題,檢查完都是JSON返回資料沒問題

Postman測試資料,發現本地全部正常,伺服器端報錯

啪!!!!
拍腦門!!!!

果然是資料庫問題,
但是報錯很離譜!

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [doLogin]: would dispatch back to the current handler URL [/doLogin] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause

javax.servlet.ServletException: Circular view path [doLogin]: would dispatch back to the current handler URL [/doLogin] again. Check your ViewResolver setup! (Hint: This may be the result

記記記!!!

相關文章