Unable to process parts as no multi-part configuration has been provided

1,529 阅读1分钟

Unable to process parts as no multi-part configuration has been provided

这个错误提示呀,是因为你SpringMvc想要上传文件

在 Spring-mvc.xml配置文件中添加:

<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    <property name="maxInMemorySize">
        <value>1638400</value>
    </property>