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());
全部评论

相关推荐

看起来名字可以很长:笑死 我暑期实习阿里云的意向也被 qq 邮箱放在垃圾箱了
点赞 评论 收藏
分享
12-15 18:00
巨人网络_招聘
投递巨人网络等公司6个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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