直接上代码 String strcids = request.getParameter("cids"); String[] strs = strcids.split(","); List<Integer> cids = new ArrayList<>(); for(String str:strs){ int i =Integer.parseInt(str); cids.add(i); }