当前位置: 首页 > 工具软件 > MyUploader > 使用案例 >

ng2-file-upload上传文件后台报错:Required request part 'myuploader' is not present

钱和安
2023-12-01

错误信息:

2018-09-07 19:56:29.072  WARN 17708 --- [nio-9000-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'myuploader' is not present

解决办法:

修改后台项目server/src/main/resources/application.properties文件,以下配置:

spring.http.multipart.enabled=false

将值改为true

spring.http.multipart.enabled=true

 

 类似资料: