@AllArgsConstructor和@NoArgsConstructor是Lombok注解,作用于类上。 @AllArgsConstructor:添加一个含所有属性的构造函数 @NoArgsConstructor:添加一个无参构造函数