nested exception is java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a M
2016-04-10 19:20
603 查看
nested exception is java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?] with root cause
java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?
springmvc.xml加
<!-- 定义文件上传解析器 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 设定默认编码 -->
<property name="defaultEncoding" value="UTF-8"></property>
<!-- 设定文件上传的最大值5MB,5*1024*1024 -->
<property name="maxUploadSize" value="5242880"></property>
</bean>
java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?
springmvc.xml加
<!-- 定义文件上传解析器 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 设定默认编码 -->
<property name="defaultEncoding" value="UTF-8"></property>
<!-- 设定文件上传的最大值5MB,5*1024*1024 -->
<property name="maxUploadSize" value="5242880"></property>
</bean>
相关文章推荐
- 使用HttpURLConnection向服务器发送post和get请求
- Qt网络与通信-UDP
- HttpClient设置HTTP请求头Header
- apache的HttpComponents项目的介绍和简单使用
- 第五届华中区程序设计邀请赛 网络赛Calculation E 【状压dp】
- TCP协议的学习(三)TCP协议三次握手及攻击
- JavaWeb总结(二)—HttpServletResponse对象
- 【安卓网络请求开源框架Volley源码解析系列】初识Volley及其基本用法
- 【安卓网络请求开源框架Volley源码解析系列】初识Volley及其基本用法
- 复习笔记——计算机网络
- 机器学习:贝叶斯_3:贝叶斯网络
- HTTP 1.1与HTTP 1.0的比较
- 加载网络图片
- Java网络编程小结 URLConnection协议处理器
- robotframework使用RequestsLibrary进行http接口测试
- iis_kangle_https压力测试
- Linux C语言 网络编程(二) 服务器模型
- iOS学习笔记14-网络(三)WebView
- 第五届华中区程序设计邀请赛 网络赛 Calculation A 【前缀和】
- ZOJ3229 Shoot the Bullet(有源汇流量有上下界网络的最大流)