Cannot get connection for redisTemplate for Spring data redis
问题 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") JedisConnectionFactory jedisConnectionFactory() { JedisConnectionFactory factory = new JedisConnectionFactory(); factory.setHostName(redisHostName); factory.setPort(redisPort); factory.setUsePool(true); return factory; } @Bean(name="redisTemplate") RedisTemplate<Object, Object> redisTemplate() { RedisTemplate<Object, Object> redisTemplate =