sprig mvc modelList添加model方法。
@RequestMapping(value = "/submitUserList_1", method ={RequestMethod.POST}) @ResponseBody public String submitUserList_1(HttpServletResponse response,Integer[] id, String[] name, String[] pwd) throws Exception{ String result = ""; if(id == null || id.length <= 0){ return "No any ID.中文"; } ListuserList = new ArrayList (); for (int i = 0; i < id.length; i++ ) { User user = new User(); user.setId(id[i]); user.setName(name[i]); user.setPwd(pwd[i]); userList.add(user); } result = this.showUserList(userList); return result; }