注解
@Date:不用再写get,set,tostring,hashcode,equals等方法
@AllArgsConstructor 有参构造函数注解
@NoArgsConstructor 无参构造函数注解
安装插件,导入jar包,在实体类中加注解
lombok注解:
@Getter and @Setter
@FieldNameConstants
@ToString
@EqualsAndHashCode
@AllArgsConstructor, @RequiredArgsConstructor and @NoArgsConstructor
@Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j, @CommonsLog, @JBossLog, @Flogger, @CustomLog
@Data
@Builder
@SuperBuilder
@Singular
@Delegate
@Value
@Accessors
@Wither
@With
@SneakyThrows
@val
@var
experimental @var
@UtilityClass