• @Setter 用于为形容的类生成setter办法,不蕴含final润饰属性。
  • @Getter 用于为形容的类生成getter办法。
  • @ToString 用于为形容的类增加toString办法。
  • @EqualsAndHashCode 用于为形容的类,生成hashCode和equals办法。
  • @NoArgsConstructor 用于为形容的类生成无参的构造方法。
  • @AllArgsConstructor 用于为形容的类生成蕴含类中所有字段的构造方法。
  • @Data用于为形容的类生成setter/getter、equals、canEqual、hashCode、toString办法,如为final属性,则不会为该属性生成setter办法。
  • @Slf4J 用于为形容的类增加一个日志属性对象。