关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
2017-12-21 14:03
639 查看
1,可能前端ajax提交的数据拼装错误
2,可能后端接收数据的数据类型不匹配 ,比如前端传送的数据时string,后端使用的是Integer数据类型接收,此时就会包以上错误
3,其他:网上说,可能是因为springmvc封装数据的实体对象没有无参构造函数(经本人验证,不存在这样的问题。如果实在没有办法解决此问题,可以试试第3条)
2,可能后端接收数据的数据类型不匹配 ,比如前端传送的数据时string,后端使用的是Integer数据类型接收,此时就会包以上错误
3,其他:网上说,可能是因为springmvc封装数据的实体对象没有无参构造函数(经本人验证,不存在这样的问题。如果实在没有办法解决此问题,可以试试第3条)
相关文章推荐
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- 关于前台jsp页面Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- ajaxSubmit 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responsed with a status of 400 (Bad Request)
- 上传文件失败 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- springmvc获取json Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Spring MVC json报406错误的解决办法 Failed to load resource: the server responded with a status of 406
- (springmvc)页面找不到静态资源文件Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- SrpingMVC==>Failed to load resource: the server responded with a status of 404(Not Found)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- springmvc Failed to load resource: the server responded with a status of 404 (Not Found)
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)