摘要: 1.引入依赖: 2.配置redis 3.Springboot 配置类 看到这个@ConditionalOnMissingBean注解后,就知道如果Spring容器中自有了RedisTemplate对象了,这个框架自带的自动配置的RedisTemplate不会实例化。因此我们可以直接自己写个配置类,配 阅读全文
posted @ 2019-01-27 14:35 超轶绝尘 阅读(1837) 评论(1) 推荐(0) 编辑
摘要: import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import static java.lang.annotation.E... 阅读全文
posted @ 2019-01-27 11:13 超轶绝尘 阅读(840) 评论(1) 推荐(0) 编辑