使用的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

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐