摘要: 这个是类定义,都是POJO类,纯数据以下代码将POJO类反射到REDIS中,采用JSON序列化类数据。 public static <T> T save(T model, String indexName) throws Exception { String modelName = model.getClass().getSimpleName(); Jedis jedis = jPool().getResource(); Long id = null; try { id = (Long) PropertyUti... 阅读全文
posted @ 2013-01-25 16:19 jdragon 阅读(1188) 评论(0) 推荐(0)