想在fidder上直接传个List ,后台接收数据进行批量保存。但是传参的时候报
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
无法反序列化错误。查了挺长时间,后来发现传参错了。
错误的传参:
{{
"fireSuperviseRecordUuid": "9eb69d28-d128-4328-b3b0-7ee71fad2f9f",
"fireUserEntity": {
"uuid": "364eebd5-64e6-4efd-9708-b450a0adad6a"
}
},
{
"fireSuperviseRecordUuid": "9eb69d28-d128-4328-b3b0-7ee71fad2f9f",
"fireUserEntity": {
"uuid": "364eebd5-64e6-4efd-9708-b450a0adad6a"
}
}
}
正确的传参:
[{
"fireSuperviseRecordUuid": "9eb69d28-d128-4328-b3b0-7ee71fad2f9f",
"fireUserEntity": {
"uuid": "364eebd5-64e6-4efd-9708-b450a0adad6a"
}
},
{
"fireSuperviseRecordUuid": "9eb69d28-d128-4328-b3b0-7ee71fad2f9f",
"fireUserEntity": {
"uuid": "364eebd5-64e6-4efd-9708-b450a0adad6a"
}
}
]