BeanUtils.populate方法详解

将properties里面的值赋值给bean里面。

  • BeanUtils.populate( Object bean, Map properties ),
  • 这个方法会遍历map<key, value>中的key
  • 如果bean中有这个属性,就把这个key对应的value值赋给bean的属性。

猜你喜欢

转载自blog.csdn.net/Sunshineoe/article/details/110881865