服務器報: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
相關文章
相關標籤/搜索