首先需要在在pom.xml文件添加依赖:
commons-beanutils commons-beanutils 1.8.3
String[] stringArray = request.getParameter("aftIdList").split(",");
//将String数组转成Integer数组
Integer[] interArray = (Integer[])ConvertUtils.convert(aftIdStringArray, Integer.class);
首先需要在在pom.xml文件添加依赖:
commons-beanutils commons-beanutils 1.8.3
String[] stringArray = request.getParameter("aftIdList").split(",");
//将String数组转成Integer数组
Integer[] interArray = (Integer[])ConvertUtils.convert(aftIdStringArray, Integer.class);