copyProperties 场景一:同类之间不同对象的复制 Account source = new Account(); source.setLoginName("aaa"); source.setPassword("123"); Account target = new Account(); BeanUtils.copyProperties(source, targer); // 把source中的属性复制到target