摘要: 1 package com.zy.configuration; 2 import org.springframework.beans.factory.annotation.Autowired; 3 import org.springframework.context.annotation.Bean; 阅读全文
posted @ 2021-03-02 16:55 空气微量 阅读(38) 评论(0) 推荐(0)
摘要: 1 package com.learn.jredis.pojo; 2 3 import java.io.Serializable; 4 5 public class User implements Serializable { 6 7 private static final long serial 阅读全文
posted @ 2021-02-20 14:07 空气微量 阅读(47) 评论(0) 推荐(0)
摘要: 1 @Configuration 2 public class RedisConfig { 3 @Bean 4 public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) { 5 RedisTe 阅读全文
posted @ 2021-02-20 13:57 空气微量 阅读(91) 评论(0) 推荐(0)
摘要: 1 import org.springframework.beans.factory.annotation.Autowired; 2 import org.springframework.data.redis.core.RedisTemplate; 3 import org.springframew 阅读全文
posted @ 2021-02-20 13:48 空气微量 阅读(33) 评论(0) 推荐(0)