BeanUtils.copyProperties(A,B)

1、package org.springframework.beans;
中的
BeanUtils.copyProperties(A,B);
是A中的值付给B
2、package org.apache.commons.beanutils;(常用)
中的
BeanUtils.copyProperties(A,B);
是B中的值付给A

猜你喜欢

转载自blog.csdn.net/xnattack/article/details/91959885