Deep copy Posted on 2021-04-05 | In Spring | 1BeanUtils.copyProperties(person1, person2, "name", "phone"); 이름과 전화번호 이외의 내용을 person1 → person2로 복사해준다. 원하는 class에 implements Cloneable 을 해준후 123456789public Candidate clone() { Candidate candidate = null; try { candidate = (Candidate) super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } return candidate; }