JSON parse error: Cannot deserialize value of type `java.util.ArrayList
接口:
public AjaxResult editList( String unit, String ruleValue, @RequestBody Listids){}
第一次写后端接口 前端传过来三个参数, 其中一个参数类型为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 }) }