<!-- 添加对文件上传的支持 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- set the max upload size100MB -->
<property name="maxUploadSize">
<value>5368709120</value>
</property>
<property name="maxInMemorySize">
<value>5120</value>
</property>
</bean>
<!-- 添加对文件的上传结束 -->
value中以字节为单位。