首页>代码>SpringBoot2.1.4整合Redis、Jedis通过注解形式,进行简单的字符串数据类型的增删改查>/springboot-redis/src/main/java/com/example/demo/entity/Test.java
package com.example.demo.entity; import java.io.Serializable; /** * 继承java.io.Serializable进行序列号处理 * @author 程就人生 * @date 2019年11月5日 */ public class Test implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String uid; private String username; private String password; private String sex; public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } @Override public String toString() { return "Test [uid=" + uid + ", username=" + username + ", password=" + password + ", sex=" + sex + "]"; } }