Today encountered this problem, to find it again, the solution is as follows:
1. Add dependence:
<dependency>
<groupId> Commons-IO </ groupId>
<artifactId> Commons-IO </ artifactId>
<Version> 1.3.2 < / Version>
</ dependency>
<dependency>
<the groupId> Commons-FileUpload </ the groupId>
<the artifactId> Commons-FileUpload </ the artifactId>
<Version> 1.2.1 </ Version>
</ dependency>
2. direct mapping controller file: If
@RequestParam ( "excelFile") MultipartFile excelFile
resolved.
SpringBoot upload files abnormal -Required request part 'file' is not present
Guess you like
Origin blog.csdn.net/Retank/article/details/90444157
Ranking