当前位置:网站首页>Assign the corresponding key and value in the map to the object

Assign the corresponding key and value in the map to the object

2020-11-09 22:41:00 South of the South I

BeanUtils be located import org.apache.commons.beanutils.BeanUtils It's a bag

How to use it :

Map<String, Object> objectMap=new HashMap<String, Object>()

try {
  BeanUtils.populate(corpusTranscribePage, objectMap);// take Map Corresponding key and value Assign values to the corpusTranscribePage In the object
} catch (IllegalAccessException | InvocationTargetException e) {
  log.error(" Convert exceptions ", e);
}

版权声明
本文为[South of the South I]所创,转载请带上原文链接,感谢