@RequestMapping("/batchDeleteProduct")
public TmyResult batchDeleteProduct( List<Integer> ids){
System.out.println(ids);
return null;
}
``需要在list前面添加注解@RequestParam(value = "ids" ,required=false)
如下图
@RequestMapping("/batchDeleteProduct")
public TmyResult batchDeleteProduct( @RequestParam(value = "ids",required=false) List<Integer> ids){
System.out.println(ids);
return null;
}