HTTP Status 400 The request sent by the client was syntactically incorrect.
来源:互联网 发布:nginx 403 编辑:程序博客网 时间:2024/05/06 14:54
出现这个问题的主要原因主要是请求传入参数和接收对象的参数不一致(有可能是名字不一致,也有可能是参数的类型不一致)
下面的信息是我把log4j的org.springframework.web=bug才打印出来的,看到这个信息之后就迎刃而解了
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object 'institutionBase' on field 'licenceUrl': rejected value [org.springframework.web.multipart.commons.CommonsMultipartFile@ddbecad]; codes [typeMismatch.institutionBase.licenceUrl,typeMismatch.licenceUrl,typeMismatch.java.lang.String,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [institutionBase.licenceUrl,licenceUrl]; arguments []; default message [licenceUrl]]; default message [Failed to convert property value of type [org.springframework.web.multipart.commons.CommonsMultipartFile] to required type [java.lang.String] for property 'licenceUrl'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.web.multipart.commons.CommonsMultipartFile] to required type [java.lang.String] for property 'licenceUrl': no matching editors or conversion strategy found]
Field error in object 'institutionBase' on field 'licencePath': rejected value [org.springframework.web.multipart.commons.CommonsMultipartFile@618f58f6]; codes [typeMismatch.institutionBase.licencePath,typeMismatch.licencePath,typeMismatch.java.lang.String,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [institutionBase.licencePath,licencePath]; arguments []; default message [licencePath]]; default message [Failed to convert property value of type [org.springframework.web.multipart.commons.CommonsMultipartFile] to required type [java.lang.String] for property 'licencePath'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.web.multipart.commons.CommonsMultipartFile] to required type [java.lang.String] for property 'licencePath': no matching editors or conversion strategy found]
- HTTP Status 400 The request sent by the client was syntactically incorrect.
- velocity http请求400错误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
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- HTTP 400: Bad Request The request sent by the client was syntactically incorrect
- http 400 Bad Request The request sent by the client was syntactically incorrect
- http 400错误 描述:The request sent by the client was syntactically incorrect
- Http 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
- JDBC之用元数据将结果集封装为List对象
- Disruptor并发框架
- CPU的特权指令分类
- 采用内部存储的方式写入数据及读取数据xs
- Activity的四中启动方式
- HTTP Status 400 The request sent by the client was syntactically incorrect.
- 114. Flatten Binary Tree to Linked List
- jQuery操作select
- Column count of mysql.events_waits_current is wrong. Expected 19, found 16. Created with MySQL 5054
- 【算法】查找数组第i小的元素的算法
- sql查询重复数据
- Lua 用指定字符或字符串分割输入字符串,返回包含分割结果的数组
- i7第7代已经出来了
- 通过java程序实现mysql 批量一个表的子段更新另一个表的字段