今天碰到这个问题,找了一遍,解决办法如下步骤:
1.添加依赖:
< dependency>
< groupId>commons-io< /groupId>
< artifactId>commons-io< /artifactId>
< version>1.3.2< /version>
< /dependency>
< dependency>
< groupId>commons-fileupload< /groupId>
< artifactId>commons-fileupload< /artifactId>
< version>1.2.1< /version>
< /dependency>
2.控制器直接映射文件:如
@RequestParam(“excelFile”) MultipartFile excelFile
解决。
注:技术交流QQ群-595892258