问题描述
使用redis是控制台提示redis连接不上
Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379
原因分析:
查看最后一条报错才发现是配置文件中redis密码的问题
ERR Client sent AUTH, but no password is set
解决方案:
将配置文件的redis的密码设置为空,连接成功。
此文章仅供本人学习使用,如有问题请各位指正。