BeanUtils.populate小叙

BeanUtils

  1. 介绍
    BeanUtils是在org.apache.commons.beanutils.BeanUtils包中的一个方法。
  2. .populate方法的作用:
    用来将一些 key-value 的值(例如 hashmap)映射到 bean 中的属性。
    BeanUtils.populate(order, request.getParameterMap());
把前台传过来的数据封装进JavaBean
import org.apache.commons.beanutils.BeanUtils;//导入BeanUtils包
BeanUtils.populate(order, request.getParameterMap());
全部评论

相关推荐

自由水:这HR已经很好了,多的是已读不回和不读了
点赞 评论 收藏
分享
05-30 12:03
山西大学 C++
offer来了我跪着接:不是骗子,等到测评那一步就知道为啥这么高工资了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务