错误提示:Request processing failed; nested exception is java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?
错误原因
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="defaultEncoding" value="utf-8"/> <!-- 默认编码 -->
<property name="maxUploadSize" value="102400000"/> <!-- 文件最大值 -->
<property name="maxInMemorySize" value="4096"/> <!-- 缓存大小 -->
<property name="uploadTempDir" value="shxt"/> <!-- 临时文件夹 -->
</bean>
id应该是multipartResolver