本文共 276 字,大约阅读时间需要 1 分钟。
使用:
引入坐标
org.projectlombok lombok 1.16.20 provided
常用注解
@Data注解在类上,会为类的所有属性自动生成setter/getter、equals、canEqual、hashCode、toString方法,如为final属性,则不会为该属性生成setter方法。
@NotNull
@NotEmpty
@ToString
@Setter
@Getter
转载地址:http://axlti.baihongyu.com/