public final class BeanExtendUtils extends Object
public static void populate(Object bean, Map<String,?> properties)
Use map to fill in the attribute values of the bean instance
bean - 需要填充的实例bean。The instance bean that needs to be filledproperties - 属性参数Map。Property parameter Mappublic static void setProperty(Object bean, String name, Object value)
Assign a value to the specified attribute of the specified instance object, the attribute field to be assigned must provide a setter method.
bean - 需要设置属性的示例对象。the object that needs to set propertiesname - 属性字段的名称。The name of the fieldvalue - 属性字段的值。The value of the fieldCopyright © 2024. All rights reserved.