spring mvc MultipartFile 上传文件错误解决
2013-09-09 15:56
1201 查看
Field error in object 'xxxx' on field 'xxxx': rejected value [20129259128131.jpg]; codes [typeMismatch.xxxx.xxxx,typeMismatch.xxxx,typeMismatch.org.springframework.web.multipart.MultipartFile,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable:
codes [xxxx.xxxx,xxxx]; arguments []; default message [shoplogo_]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.web.multipart.MultipartFile' for property 'shoplogo_'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.MultipartFile] for property 'shoplogo_': no matching editors or conversion strategy found]
出现类似错误,检查form表单属性是否写上enctype="multipart/form-data"。
codes [xxxx.xxxx,xxxx]; arguments []; default message [shoplogo_]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.web.multipart.MultipartFile' for property 'shoplogo_'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.MultipartFile] for property 'shoplogo_': no matching editors or conversion strategy found]
出现类似错误,检查form表单属性是否写上enctype="multipart/form-data"。
相关文章推荐
- spring mvc MultipartFile 上传文件错误解决
- springMVC MultipartFile file文件上传及参数接受
- SpringMVC MultipartFile file文件上传及参数接收
- 解决springboot MultipartFile文件上传遇到的问题
- spring-boot上传文件MultiPartFile获取不到文件问题解决
- SpringMVC MultipartFile文件上传
- 异常-----springmvc + ajaxfileupload解决ajax不能异步上传图片的问题。java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.
- spring-boot上传文件MultiPartFile获取不到文件问题解决
- spring mvc ajaxfileupload文件上传返回json下载问题
- springMVC3学习(十一)--文件上传CommonsMultipartFile
- JFinal上传文件报Posted content type isn't multipart/form-data错误解决办法。
- springMVC+ajaxFileUpload 文件上传
- springmvc + ajaxFileUpload多文件上传
- spring ApplicationContext-mvc之CommonsMultipartResolver对文件上传的支持
- springMVC+Ajaxfileupload无刷新上传文件返回json串问题
- Spring MultipartFile 文件上传
- 解决"利用Html5的FileRead接口和Formdata上传文件到appweb服务器"报500(internal server error)错误
- Spring SpringMVC文件上传错误
- SpringMVC multipart(文件上传)
- Spring MultipartFile 文件上传