@Data //添加setter/getter方法
@NoArasConstructor //无参构造
@AllArasConstructor //全参构造
@Accessors(chain = true) //添加链式调用
public class User{
private Interger id;
private String username;
private Stringpassword;
}
@Data //添加setter/getter方法
@NoArasConstructor //无参构造
@AllArasConstructor //全参构造
@Accessors(chain = true) //添加链式调用
public class User{
private Interger id;
private String username;
private Stringpassword;
}