BeanUtils位於import org.apache.commons.beanutils.BeanUtils包下apache
其使用方法:對象
Map<String, Object> objectMap=new HashMap<String, Object>()get
try {
BeanUtils.populate(corpusTranscribePage, objectMap);//將Map中對應的key和value賦值到corpusTranscribePage對象中
} catch (IllegalAccessException | InvocationTargetException e) {
log.error("轉換異常", e);
}io