首页>代码>spring整合ehcache的入门级别demo分享,通过junit来测试>/zuidaima_spring-cache-test/src/main/java/com/zuidaima/spring/entity/User.java
package com.zuidaima.spring.entity; import java.io.Serializable; public class User implements Serializable { private static final long serialVersionUID = -4005919398334834100L; private Long id; private String username; private String email; public User() { } public User(Long id, String username, String email) { this.id = id; this.username = username; this.email = email; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }