Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: 解决办法
找到redis的配置文件 redis.conf
1、vim redis.conf
2、修改 protected-mode yes 改为:protected-mode no
3、注释掉 #bin 127.0.0.1
a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ that could not be found
RedisTemplate指定了泛型的话,不能用@Autowired,要用@resource