package com.king.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; //lombok插件常识 //get,set @Data //有参构造 @AllArgsConstructor //无参构造 @NoArgsConstructor public class User { private int id; private String name; private String pwd; public User(int id, String name, String pwd) { this.id = id; this.name = name; this.pwd = pwd; } }