springboot接⼝接收参数为实体对象跟MultipartFile对象
报错。
springboot接⼝接收参数为实体对象跟⽂件对象报错。
⽅法参数为
Aa,Bb,@RequestParamMultipartFilefrontImg,
@RequestParamMultipartFilebackImg
如上是可以接受到2个⽂件到,但是A,B实体类接受不到
@RequestbodyAa,@RequestbodyBb,@RequestParamMultipartFilefrontImg,
@RequestParamMultipartFilebackImg
这样到话报错信息如下
重⾦求⼈解决问题
{
"timestamp":50,
"status":415,
"error":"UnsupportedMediaType",
"exception":"diaTypeNotSupportedException",
"message":"Contenttype'multipart/form-data;boundary=----WebKitFormBoundarywczeDlb5Y86wuQSJ;chart=UTF-8'notsupported",
"path":"/personalCenter/saveUrRealInfo"
}
本文发布于:2022-12-29 23:56:37,感谢您对本站的认可!
本文链接:http://www.wtabcd.cn/fanwen/fan/90/56210.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
| 留言与评论(共有 0 条评论) |