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);
}