错误信息:
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