postman&springboot报错:Resolved [org.springframework.web.multipart.support.MissingServletRequestPartEx
postman key=@RequestParam中的“file”如下图。使用postman post时,报错如下。修改之后重新send 成功!idea的控制台报错如下。被这个问题困扰了两三天。
·
代码如下
使用postman post时,报错如下
idea的控制台报错如下
WARN 3164 --- [demo8] [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.multipart.support.MissingServletRequestPartException: Required part 'file' is not present.]
被这个问题困扰了两三天
解决方法如下
postman key=@RequestParam中的“file”如下图
修改之后重新send 成功!

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)