import org.apache.commons.beanutils.BeanUtils
BeanUtils
1、
public static void copyProperty(Object bean, String name, Object value)
value的值复制到
bean对象中属性名为name的属性中;

2、
public static void copyProperties(Object dest, Object orig)

把对象orig的所有属性的值复制到dest对象中;

3、
public static Object cloneBean(Object bean)
复制一个bean;

4、
public static Map describe(Object bean)
把对象中的属性解析成Map对象;




相关文章:

  • 2021-08-03
  • 2021-12-28
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-08-13
  • 2021-05-26
  • 2021-05-28
  • 2021-07-11
  • 2022-02-15
相关资源
相似解决方案