如題。簡簡單單兩句話就能問明白,為啥還得湊到20字。
2 回答

當年話下
TA貢獻1890條經(jīng)驗 獲得超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
提交
取消