Here are some of my commonly used lombok annotations:
@Data : Annotated on the class; provides getting and setting methods for all properties of the class, and also provides equals, canEqual, hashCode, toString methods
@Setter : Annotated on properties; Provide a setting method
@Getter : Annotate on the property; Provide a getter method for the property
@Log4j : Annotate on the class; Provide a log4j log object with an attribute named log for the class
@NoArgsConstructor : Annotate on the class; Provide a class with no parameters Constructor
@AllArgsConstructor : Annotated on the class; provides a full-parameter constructor for the class
lombok annotation
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326685490&siteId=291194637
Ranking