摘要: /*Redis*/ @Bean public RedisConnectionFactory redisConnectionFactory() { return new JedisConnectionFactory(); } /*redis模板*/ /* @Bean public RedisTemplate redisTe... 阅读全文
posted @ 2018-12-28 21:20 YouAreABug 阅读(247) 评论(0) 推荐(0) 编辑
摘要: /*以下的方法都可以使用*/ public List select() { try { Jedis jedis = new Jedis(); String key = "newss"; //jackson内置的对象有序列化和反序列化的方法 ObjectMapper ob... 阅读全文
posted @ 2018-12-28 21:18 YouAreABug 阅读(221) 评论(0) 推荐(0) 编辑