如题。简简单单两句话就能问明白,为啥还得凑到20字。
2 回答
当年话下
TA贡献1890条经验 获得超9个赞
这两个是完全不同的接口啊,功能不一样的:
public static void copyProperties(Object dest, Object orig) throws IllegalAccessException, InvocationTargetException
Copy property values from the origin bean to the destination bean for all cases where the property names are the same.
public static void setProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException
Set the specified property value, performing type conversions as required to conform to the type of the destination property.
添加回答
举报
0/150
提交
取消