它是lombok中的注解,作用在类上;
使用后添加一个构造函数,该构造函数含有所有已声明字段属性参数
对应的 @NoArgsConstructor 是添加一个无参数的构造器,一般使用@Builder注解时同时会使用@AllArgsConstructor和@NoArgsConstructor
它是lombok中的注解,作用在类上;
使用后添加一个构造函数,该构造函数含有所有已声明字段属性参数
对应的 @NoArgsConstructor 是添加一个无参数的构造器,一般使用@Builder注解时同时会使用@AllArgsConstructor和@NoArgsConstructor