springboot 连接redis报错:
ERROR 19830 — [nio-8081-exec-1]
o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for
servlet [dispatcherServlet] in context with path [] threw exception
org.springframework.data.redis.RedisConnectionFailureException: Unable
to connect to Redis; nested exception is
io.lettuce.core.RedisConnectionException: Unable to connect to
127.0.0.1:6379
springboot版本:2.1.8
解决:
如果你的redis没有设置密码,那么就应该将配置文件中,redis的password项删掉或置空。