Failed to convert value of type...no matching editors or conversion strategy found
来源:互联网 发布:奔奔数码淘宝王奔宏 编辑:程序博客网 时间:2024/06/13 12:10
在使用springMvc做文件上传的时候出现
HTTP Status 500 - Failed to convert value of type [java.lang.String] to required type [org.springframework.web.multipart.commons.CommonsMultipartFile]; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.commons.CommonsMultipartFile]: no matching editors or conversion strategy found
不知觉中的原因:
这里没有写method方法,
并且后台是用CommonsMultipartFile接受的。
这里要写清楚文件上传的形式。如果用get请求,数据是直接接在url后面,但是我们知道url里面是放不了多少数据的,
所以只有用post请求,将数据放置在消息体里。
0 0
- Failed to convert value of type...no matching editors or conversion strategy found
- no matching editors or conversion strategy found
- no matching editors or conversion strategy found
- no matching editors or conversion strategy found
- no matching editors or conversion strategy found
- no matching editors or conversion strategy found
- No Matching editors or conversion strategy found
- aop配置拦截器required type [***] for property 'myBean': no matching editors or conversion strategy found
- spring报no matching editors or conversion strategy found
- 解决: Spring no matching editors or conversion strategy found
- no matching editors or conversion strategy found 的解决办法
- no matching editors or conversion strategy found 异常
- no matching editors or conversion strategy found 异常_解决办法
- 项目中遇到 no matching editors or conversion strategy found
- spring配置 no matching editors or conversion strategy found 异常解决方案
- spring配置 no matching editors or conversion strategy found 异常解决方案
- 自定义类型转换器出错:no matching editors or conversion strategy found
- spring java.lang.IllegalArgumentException:。。。 no matching editors or conversion strategy found异常
- 18. 4Sum
- 城市建设
- 监听者—观察者模式
- oc之NSlog用法【2】
- iOS-多线程编程学习之NSOperation(四)
- Failed to convert value of type...no matching editors or conversion strategy found
- Javascript自学-7
- linux 常见测试题
- 我到底是做前端的还是后端的
- sudo 和 su 的区别
- [SSH框架初学笔记]web.xml文件的基本配置
- Git / Gitlab 奇淫技巧
- 24-2015年终总结
- C#Winform动态读取App.Config文件