[JAVA] Lombok @Delegate
·
JAVA
Lombok에 Delegate 어노테이션을 잘몰라서 기록 @Delegate 한 객체의 메소드를 다른 객체로 위임 시켜줌 예시 @NoArgsConstructor @Getter public class Member { private String name; private String email; } @Getter public class Report { @Delegate private List memberList; } public class Main { public static void main(String[] args) { Report report = new Report(); /* add 메소드가 위임되어서 바로 호출이 가능 */ report.add(new Member()); report.getMemberLis..
[IntelliJ] Lombok 설정
·
IDE
설정시 매일 까먹어서 적어놓음 Lombok 설정 1. Settings -> Plugin -> lombok 검색 실행 (재시작) 2. Settings -> Build, Execution, Deployment -> Annotation Processors -> Enable annotation processing 체크 (재시작)