當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
Could not read JSON: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token
生活随笔
收集整理的這篇文章主要介紹了
Could not read JSON: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
【辰兮要努力】:hello你好我是辰兮,很高興你能來閱讀,昵稱是希望自己能不斷精進,向著優(yōu)秀程序員前行!
博客來源于項目以及編程中遇到的問題總結(jié),偶爾會有讀書分享,我會陸續(xù)更新Java前端、后臺、數(shù)據(jù)庫、項目案例等相關(guān)知識點總結(jié),感謝你的閱讀和關(guān)注,希望我的博客能幫助到更多的人,分享獲取新知,大家一起進步!
吾等采石之人,應懷大教堂之心,愿大家奔赴在各自的熱愛里…
控制臺報錯:Could not read JSON: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token
如果服務端接收參數(shù)的實體類,有數(shù)組類型的屬性。
@Data public class DemoVo {private List<String> list;}錯誤示范
{"list": "[1]" }正確示范
{"list": [1] }非常感謝你閱讀到這里,如果這篇文章對你有幫助,希望能留下你的點贊👍 關(guān)注?? 分享👥 留言💬thanks!!!
2021年12月14日22:56:46 愿你們奔赴在自己的熱愛里!
總結(jié)
以上是生活随笔為你收集整理的Could not read JSON: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 英特尔推出SD卡巨细电脑 配Atom处理
- 下一篇: mysql端口establish_est