前后台分离开发,前端表单类型和数据库表名称不一致报错
前后端分离项目开发,
先把后端开发完成,测试,部署
然后开发前端.
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
记记记!!!