BeanUtils.populate(obj, map);

public static void populate(Object bean, Map<String, ? extends Object> properties)
throws IllegalAccessException, InvocationTargetException {

BeanUtilsBean.getInstance().populate(bean, properties);
}
BeanUtils.populate(obj, map);
原文地址:https://www.cnblogs.com/xingzc/p/6252309.html