1、問(wèn)題描述
在進(jìn)行VUE+springboot項(xiàng)目前后端數(shù)據(jù)傳輸時(shí),出現(xiàn)如下錯(cuò)誤Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type
java.lang.Stringfrom Object value (token
JsonToken.START_OBJECT)]
Controller層前端傳遞的參數(shù)
原因分析:
報(bào)錯(cuò)原因是傳參錯(cuò)誤報(bào)錯(cuò),因此檢查前端代碼發(fā)現(xiàn)
前端參數(shù)錯(cuò)誤導(dǎo)致文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-543689.html
解決方案:
修改前端代碼如下則成功接收
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-543689.html
到了這里,關(guān)于Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error:報(bào)錯(cuò)處理的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!