用来将客户端发送过来的数据封装到javaBean中的一个工具类

是apache研发的,需要导入

commons-logging-1.1.1.jar

commons-beanutils-1.8.3.jar

使用步骤

先获取到表单的数据 request.getParameterMap();创建要封装数据的JavaBean User user = new User();使用BeanUtils工具类封装数据 BeanUtils.populate(user, map);