Jackson反序列化提示:Can not deserialize instance of Task out of START_ARRAY token

解决方法:

1、没有绝对的方法,只能不断的测试和排查。

2、检查一下JSON数据和实体的字段结构是不是不一致导致的。比如JSON数据是数组,而实体字段为非数组。

 

参考:

https://stackoverflow.com/questions/21178215/can-not-deserialize-instance-of-task-out-of-start-array-token

https://stackoverflow.com/questions/19333106/jsonmappingexception-out-of-start-array-token

https://stackoverflow.com/questions/23674046/get-list-of-json-objects-with-spring-resttemplate/26796142#26796142

https://stackoverflow.com/questions/10719729/cannot-deserialize-instance-of-object-out-of-start-array-token-in-spring-3-rest/28449667#28449667

https://stackoverflow.com/questions/25510083/cannot-deserialize-instance-of-object-out-of-start-array-token-in-spring-webserv/25512128#25512128

    原文作者:EasonJim
    原文地址: https://www.cnblogs.com/EasonJim/p/8084449.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞