@Controller @RequestMapping(value="/user") public class UserAction { @RequestMapping(value="/delete") public String deleteMethod(int[] ids,Model model) throws Exception{ System.out.println("UserAction::deleteMethod()"); System.out.println("需要删除的id为:"); for(int id : ids){ System.out.print(id+" "); } model.addAttribute("message","批量删除成功"); return "/success.jsp"; } }
原文地址:https://www.cnblogs.com/loaderman/p/10063330.html
时间: 2024-11-09 09:48:31