admin管理员组

文章数量:1567286

Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported]

原因:
使用了@requestbody,在postman中header中content-type默认是application/x-www-form-urlencoded;charset=UTF-8。

解决:
需要修改为application/json;charsetset=UTF-8,并且使用body中的raw来传输数据

本文标签: