swagger导入的写法
@ApiOperation(value = "导入")
@PostMapping(value = "ImportItam",consumes = "multipart/*",headers = "content-type=multipart/form-data")
public ResultVO<String>ImpotIteam( @ApiParam(value = "上传的文件",required = true) MultipartFile file) {
InputStream inputStream = new BufferedInputStream(());
}
加入,提示没有tmp文件的话 手动创建
@Bean
public MultipartConfigElement multipartConfigElement() {
MultipartConfigFactory factory = new MultipartConfigFactory();
//文件最大
("10240KB"); //KB,MB
("/tmp");
/// 设置总上传数据总大小
("102400KB");
return ();
}
: : Request processing failed; nested exception is : Could not parse multipart servlet request; nested exception is : $IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
at (:45)
at (:193)
at (:166)
at (:111)
at (:107)
at (:193)
at (:166)
at $(:317)
at (:127)
at (:91)
at $(:331)
at (:114)
at $(:331)
at (:137)
at $(:331)
at (:111)
at $(:331)
at (:170)
at $(:331)
at (:63)
at $(:331)
at (:155)
at $(:331)
at (:200)
at $(:331)
at (:116)
at $(:331)
at (:66)
at (:107)
at $(:331)
at (:105)
at $(:331)
at (:56)
at (:107)
at $(:331)
at (:214)
at (:177)
at (:347)
at (:263)
at (:193)
at (:166)
at (:99)
at (:107)
at (:193)
at (:166)
at (:109)
at (:107)
at (:193)
at (:166)
at (:81)
at (:107)
at (:193)
at (:166)
at (:167)
at (:80)
at (:193)
at (:166)
at (:186)
at (:193)
at (:166)
at (:197)
at (:107)
at (:193)
at (:166)
at (:106)
at (:107)
at (:193)
at (:166)
at (:198)
at (:96)
at (:496)
at (:140)
at (:81)
at (:87)
at (:650)
at (:677)
at (:342)
at .http11.(:803)
at (:66)
at $(:790)
at $(:1459)
at (:49)
at (:1149)
at $(:624)
at $(:61)
at (:748)
Caused by: : Request processing failed; nested exception is : Could not parse multipart servlet request; nested exception is : $IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
at (:982)
at (:872)
at (:661)
at (:846)
at (:742)
at (:231)
at (:166)
at (:52)
at (:193)
at (:166)
at (:55)
at (:107)
at (:193)
at (:166)
at (:96)
at (:107)
at (:193)
at (:166)
at (:156)
at (:193)
at (:166)
at (:41)
... 85 common frames omitted
Caused by: : Could not parse multipart servlet request; nested exception is : $IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
at (:116)
at .<init>(:90)
at (:81)
at (:1104)
at (:936)
at (:901)
at (:970)
... 106 common frames omitted
Caused by: : $IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
at (:2916)
at (:3216)
at (:1137)
at (:381)
at (:153)
at (:75)
... 36 common frames omitted
Caused by: $IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
at (:297)
at (:2868)
... 41 common frames omitted
Caused by: $MalformedStreamException: Stream ended unexpectedly
at $(:983)
at $(:881)
at (:133)
at (:132)
at (:107)
at (:98)
at (:68)
at (:293)
... 42 common frames omitted