服务器报:HttpMediaTypeNotSupportedException: Content type ‘text/plain;charset=UTF-8‘

最近使用postman调试springboot项目出现HttpMediaTypeNotSupportedException: Content type ‘text/plain;charset=UTF-8’,查了一下资料发现是因为,postman的请求头设置的不对,原来的是这样: 可以看到Content-Type是text/plain类型的,将Content-Type改为application/js
相关文章
相关标签/搜索