@Data
/**
* Generates getters for all fields, a useful toString method, and hashCode and equals implementations that check
* all non-transient fields. Will also generate setters for all non-final fields, as well as a constructor.
* <p>
* Equivalent to {@code @Getter @Setter @RequiredArgsConstructor @ToString @EqualsAndHashCode}.
* <p>
* Complete documentation is found at <a href="https://projectlombok.org/features/Data">the project lombok features page for @Data</a>.
*
* @see Getter
* @see Setter
* @see RequiredArgsConstructor
* @see ToString
* @see EqualsAndHashCode
* @see lombok.Value
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface Data {
- 스프링 프로젝트를 하면서 새로운 것들을 매일 발견하고 있다. 정리를 해둬야 할텐데 우선 받아서 담아놓기만 하고 내 머릿속에도, 벨로그에도 자리를 내어주지는 못했다.
- 팀의 변동이 있고, 오늘은 개인적인 일도 많았고 날씨는 축축하고 좀처럼 집중할 수 없는 하루였다. 어쨌거나 나의 목표와 방법은 달라지지 않았기에 TIL을 마무리하고서라도 바로 공부를 시작해야겠다.
Lombok @Data