lombok Usage.
it happens at complie time.
@Getter() and Setter()
@Getter(exclude={"id"});
@ToString()
@ToString(exclude={},of={})
@EqualsAndHashCode()
@EqualsAndHashCode()
@RequiredArgsConstructor()
@RequiredArgsConstructor()
final and @NonNull args can not be ignored.
@NoArgsConstructor()
constructor without any args.
@AllArgsConstructor()
for all args constructor.
@NonNull
@NonNull
//judge if this arg equals null.
@Data
combine these four method to one method.
@Builder
构造者模式
@Log
log.info()
val
the same as “var” in javascript.
@Cleanup
close the input and output stream.