Cannot get connection for redisTemplate for Spring data redis

后端 未结 10 2062
太阳男子
太阳男子 2020-12-05 21:25

I\'m trying to publish a message to a channel using Spring data Redis using Jedis. Here is a very simple Java config:

@Bean(name=\"jedisConnectionFactory\")
         


        
10条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 21:56

    Turns out I was using Jedis 2.7.2 but Spring Data Redis 1.5.0 seems to be compatible with Jedis 2.6.2. I wish this were a little clearer in the documentation somehow.

提交回复
热议问题