Cannot deserialize instance of `com.xxx.project.biz.domain.xxx` out of START_ARRAY token;

springmvc注解自动转换JSON数据到controller里,接收参数@RequestBody List<XXXObject> xxxObject

必须用List接收数组,如果看到自己写的确实是List

那就看看修改后有没有保存;如果保存了,就再看看有没有重启项目。

也就是说,接收类型不匹配导致的。

猜你喜欢

转载自blog.csdn.net/hebsun/article/details/103695966