BeanUtils.copyProperties(obj1,obj2); 将obj1的属性,拷贝到obj2中。 StringUtils.equals(str1,str2); 使用方法,比较两个可以为null的字符串。