springboot+thymeleaf 批量删除 Controller层 两种方法删除,第一种循环一个个删除 @Autowire UserService userService; @RequestMapping("deleteCount") public String deleteCount(Stirng[] ids){ //ids是复选框名字 for(Stirng all:ids){ userService.removeById(all); } return "u