我想写一个springmvc实现的批量删除的功能代码模块,如下是我的代码,请大神帮忙指正错误!
(1)controller:/***批量删除batch*/@RequestMapping("/batchDeletes")@ResponseBodypublicvoidb...
(1)controller:
/** * 批量删除 batch */ @RequestMapping("/batchDeletes") @ResponseBody public void batchDeletes(HttpServletRequest request,HttpServletResponse response){ String items = request.getParameter("delitems"); String[] dbids = items.split(","); for (int i = 0; i < dbids.length; i++) { userService.batchDeletes(dbids[i]); } }
(2)由于字数限制,只好发图片了。 展开
/** * 批量删除 batch */ @RequestMapping("/batchDeletes") @ResponseBody public void batchDeletes(HttpServletRequest request,HttpServletResponse response){ String items = request.getParameter("delitems"); String[] dbids = items.split(","); for (int i = 0; i < dbids.length; i++) { userService.batchDeletes(dbids[i]); } }
(2)由于字数限制,只好发图片了。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询