I have very simple NetBean Project. It include this controlller line,
@RequestMapping(value = "/MyDoc.htm", method = RequestMethod.POST)
public String FormUpload(@RequestParam("file") MultipartFile file) {
return "MyDoc";
}
and in dispatcher servelet I have,
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the maximum file size in bytes -->
<property name="maxUploadSize" value="50000000"/>
But I am getting this error java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
The project include just a single controller with two methods. GET and POST. GET version works very fine.