Student student = new Student();Map paramap = req.getParameterMap();//获取前端提交的数据try {BeanUtils.populate(student,paramap);}catch (IllegalAccessException e) {e.printStackTrace();}catch (InvocationTargetException e) {e.printStackTrace();}
BeanUtils.populate方法可以将Map类型的键值,转入到bean中保存,这种方法或许可以传递中文,地址栏传递会乱码
