使用的redis版本:7.0.4
springboot版本:2.2.0
spring-data-redis版本:2.2.0
报错信息为

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 192.xxx.xxx.xxx:6379
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect 192.xxx.xxx.xxx:6379
Caused by: io.lettuce.core.RedisCommandExecutionException: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?

是springboot的yaml配置错误

配置字段名不要用password,用auth
将配置由
在这里插入图片描述

改为
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐