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