java.io.NotSerializableException: org.javayu.cacheehcache.User 原因:没有给实体类User序列化 解决:在public class User 后添加 implements Serializable