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);
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/208605.html
標籤:其他
上一篇:IDEA常用快捷鍵
