org.apache.commons.beanutils下的copyProperty中
Property name (can be nested/indexed/mapped/combo)nested 和combo是什么东东来的public static void copyProperty(Object bean,
String name,
Object value)
throws IllegalAccessException,
InvocationTargetException
Copy the specified property value to the specified destination bean, performing any type conversion that is required.For more details see BeanUtilsBean.Parameters:
bean - Bean on which setting is to be performed
name - Property name (can be nested/indexed/mapped/combo)
value - Value to be set
Property name (can be nested/indexed/mapped/combo)nested 和combo是什么东东来的public static void copyProperty(Object bean,
String name,
Object value)
throws IllegalAccessException,
InvocationTargetException
Copy the specified property value to the specified destination bean, performing any type conversion that is required.For more details see BeanUtilsBean.Parameters:
bean - Bean on which setting is to be performed
name - Property name (can be nested/indexed/mapped/combo)
value - Value to be set
比如java中有nested classcombo是可以组合使用,combination这个单词知道吧
用在PO与VO居多,两个实体类必须有相同的属性(类型相同,属性名相同)。