@RequestBody注解postman测试报JSON parse error: Cannot deserialize instance或者“Content type ‘ not surport.
@RequestBody注解请求进不来,或者接收的值为null,postman发送post请求测试报JSON parse error: Cannot deserialize instance of"xxx"异常,或者"Content type ‘multipart/form-data;charset=UTF-8’ not supported"
想要大概了解怎么回事需要先大概知道content-type的常用属性有什么作用:
常见的媒体格式类型如下:
text/html : HTML格式
text/plain
原创
2021-05-06 16:42:29 ·
3034 阅读 ·
0 评论