BeanUtils位于import org.apache.commons.beanutils.BeanUtils包下
其使用方法:
Map<String, Object> objectMap=new HashMap<String, Object>()
try {
BeanUtils.populate(corpusTranscribePage, objectMap);//将Map中对应的key和value赋值到corpusTranscribePage对象中
} catch (IllegalAccessException | InvocationTargetException e) {
log.error(“转换异常”, e);
}