Usage of BeanUtils.populate

BeanUtils is located under org.apache.commons.beanutils.BeanUtils, and the function of its method populate is explained as follows:

Complete method:

BeanUtils.populate( Object bean, Map properties ),

This method will traverse the key in map<key, value>, if the bean has this property, assign the value corresponding to the key to the bean property.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325709960&siteId=291194637