springmvc 传递和接收数组参数
2017-09-02 16:11
459 查看
$.ajax({ type: 'POST', url: '/demo/informationDelete.do', data: { ids:[1,2,3] }, dataType: 'json', success: function (data) { console.log(data); } });
/** * 信息删除 */ @RequestMapping(value = "informationDelete", method = RequestMethod.POST) @ResponseBody public void informationDelete(@RequestParam(value = "ids[]") Integer[] ids) { for (Integer i:ids) { System.out.println(i); } }
相关文章推荐
- springmvc 传递和接收数组参数的实例
- SpringMVC参数值的传递(参数接收,数组接收,模型接收,多个模型接收以及数据回显,批量操作)
- springmvc 传递和接收数组参数
- springmvc 传递和接收数组参数
- SpringMVC之后台接收参数与前台传递数据
- springmvc接收数组参数
- springMVC如何使用@RequestParam传递数组类型参数
- springMVC 接收数组参数,mybatis 接收数组参数,mybatis批量插入/批量删除案例
- springMVC 接收数组参数,springMVC mybatis批量增删改操作
- 参数传递数组 接收 前端使用jquery向后台传递数组类型的参数,java后台直接通过list类型接收,会发现无法取到参数的情况。
- iBatis 只传递数组参数的接收
- SpringMVC接收请求参数和页面传递参数
- springMVC使用JQUERY提交数组接收时候报错,接收参数对象的属性为数组
- springMVC 接收数组参数,mybatis 接收数组参数,mybatis批量插入/批量删除案例
- SpringMVC前台传递数组,后台使用list接收
- 前端AJAX传递数组给Springmvc接收处理
- SpringMVC 之 后台接收参数 与前台传递数据
- SpringMVC,Controller如何接收前端传递过来的数组
- SpringMvc控制器接收数组类型参数Demo
- AJAX传递对象或数组参数到SpringMVC的控制层(js到action)