I\'m trying to incorporate multiple file upload functionality in my Angular web application using angular-file-upload. Currently, the front end functionality works, but each up
Spring's MVC stack requires that the MultipartResolver
bean be called multipartResolver
. Change your @Bean
method to
@Bean
public CommonsMultipartResolver multipartResolver(){
or
@Bean(name = "multipartResolver")
public CommonsMultipartResolver commonsMultipartResolver(){
You have to add in webmvc-context.xml this:
<bean class="org.springframework.web.multipart.commons.CommonsMultipartResolver" id="multipartResolver"/>
Just add this to servler-context.xml
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="268435456"/>
</bean>
Nothing else needed.