springmvc教程-将请求中的参数封装到数组中 作者:马育民 • 2021-03-07 22:48 • 阅读:10047 # 介绍 比如批量删除等 [![](https://www.malaoshi.top/upload/pic/springmvc/QQ20210201150355.png)](https://www.malaoshi.top/upload/pic/springmvc/QQ20210201150355.png) [![](https://www.malaoshi.top/upload/pic/springmvc/QQ20201121095216.png)](https://www.malaoshi.top/upload/pic/springmvc/QQ20201121095216.png) **html代码:** ``` 姓名 李雷 韩梅梅 lucy ``` **Controller代码:** ``` @RequestMapping("/deleteByIds") public String deleteByIds(String[] ids){ for(Object id:ids){ System.out.println(id); } return "deleteSuccess"; } ``` 原文出处:http://malaoshi.top/show_1IXiajefXuW.html