//BeanUtils.copyProperties()方法中有忽略掉字段的属性以下是源码
public static void copyProperties(Object source, Object target, String... ignoreProperties) throws BeansException {
copyProperties(source, target, null, ignoreProperties);
}
//将要忽略的字段直接写在对应的位置就可以了,
//具体例子:A表为源表,B表为目标表,要把A复制到B表中,但想要忽略掉id,具体代码实现如下:
BeanUtils.copyProperties(A, B, new String[]{"id"});