JSON parse error: Cannot deserialize value of type `java.util.ArrayList` from Object value (token `jsonToken.START_OBJEC
JSON parse error: Cannot deserialize value of type `java.util.ArrayList
接口:
public ajaxResult editList( String unit, String ruleValue, @RequestBody List ids){}
第一次写后端接口 前端传过来三个参数, 其中一个参数类型为id组成的数组, 后端对这个ID数组的类型设置成List
Uncaught (in promise) Error: Required request parameter 'ruleIds' for method parameter type List is not present
最后无奈改了前端的请求接口:
export function updateList(data) { return request({ url: `/aaa/list?unit=${data.name}&ruleValue=${data.value}`, method: 'put', data: data.ids })}
来源地址:https://blog.csdn.net/weixin_50990921/article/details/132063730
--结束END--
本文标题: JSON parse error: Cannot deserialize value of type `java.util.ArrayList<java.lang.Long>` from Object
本文链接: https://www.lsjlt.com/news/410915.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-01
2024-04-03
2024-04-03
2024-01-21
2024-01-21
2024-01-21
2024-01-21
2023-12-23
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0