package com.trq.pojo; import java.io.Serializable; /** * User实体类对应数据库中的tb_user表 * * @author YaoQi * 要想使用redis存对象,一定要让实体类实现Serializable接口,否则会报错。 */ public class User implements Serializable{ /** * */ private static final long serialVersionUID = -5244288298702801619L; private int id; private String userName; private String sex; private int age; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getsex() { return sex; } public void setsex(String sex) { this.sex = sex; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public String toString() { return "User [id=" + id + ", userName=" + userName + ", sex=" + sex + ", age=" + age + "]"; } }
最近下载更多
最近浏览更多
微信网友_6658069491355648 LV2
2023年10月18日
aaaaooa LV4
2023年9月8日
李亮 LV19
2023年8月29日
2237851964 LV1
2023年3月12日
微信网友_6248713511227392 LV11
2022年12月5日
MoerPerfect LV1
2022年9月2日
小橘子1640 LV3
2022年5月31日
zhengguangshun LV2
2022年5月16日
陈小小 LV3
2022年5月6日
伊始 LV2
2022年4月27日