SpirngMVC 提交表单数据到Controller时报400错误(The request sent by the client was syntactically incorrect.)
来源:互联网 发布:青果软件掌上校园 编辑:程序博客网 时间:2024/05/17 22:29
从报错信息可以看错是客户端发送的请求语法错误,请求根本没有到controller中的方法就被拦截下来了,表单数据和自定义对象无法实现数据绑定,起先以为是表单的属性名称和自定义类中的属性名称不一致,仔细检查后发现没有问题!查看了下post的表单数据
参数parentProxy在自定义对象中是一个可为空的基本类型数据
参数值为空绑定到基本类型时就报这个400错误,将可为空参数对应的自定义对象中属性的数据类型改为引用类型,可以解决这个问题。
阅读全文
0 0
- SpirngMVC 提交表单数据到Controller时报400错误(The request sent by the client was syntactically incorrect.)
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- SpringMVC---400错误The request sent by the client was syntactically incorrect ()
- http 400错误 描述:The request sent by the client was syntactically incorrect
- 错误400-The request sent by the client was syntactically incorrect
- The request sent by the client was syntactically incorrect 服务器,tomcat,网页请求错误400,
- 错误400 The request sent by the client was syntactically incorrect ()的解决
- The request sent by the client was syntactically incorrect.
- The request sent by the client was syntactically incorrect.
- The request sent by the client was syntactically incorrect问题解决
- The request sent by the client was syntactically incorrect
- The request sent by the client was syntactically incorrect ()问题
- The request sent by the client was syntactically incorrect.
- The request sent by the client was syntactically incorrect
- The request sent by the client was syntactically incorrect.
- The request sent by the client was syntactically incorrect ()"解决办法
- The request sent by the client was syntactically incorrect
- stm32在rt-thread上的PWR(电源管理)
- 数据结构之链式栈
- 分页用实体类
- PHP 函数漏洞总结
- postgres数据库导入导出
- SpirngMVC 提交表单数据到Controller时报400错误(The request sent by the client was syntactically incorrect.)
- A problem occurred configuring project ':AndroidLib'. > You have not accepted the license agreements
- STM32定时器产生PWM--呼吸灯
- 星号变量的特殊用法
- 大数据时代下的隐私保护
- 用户注册加强版
- 01背包
- Spring Boot配置多个DataSource
- WebView.destroy()报错called while still attached