Redis RedisException: ERR Client sent AUTH, but no password is set问题解决
问题描述:Caused by: org.redisson.client.RedisException: ERR Client sent AUTH, but no password is set. channel: [id: 0x64045bae, L:/127.0.0.1:62041 - R:127.0.0.1/127.0.0.1:6379] command: (AUTH), params: (p
·
问题描述:
Caused by: org.redisson.client.RedisException: ERR Client sent AUTH, but no password is set. channel: [id: 0x64045bae, L:/127.0.0.1:62041 - R:127.0.0.1/127.0.0.1:6379] command: (AUTH), params: (password masked)
问题分析:
1、redis数据库没有设置密码,但是配置文件信息配置不对,导致报错。
spring:
redis:
database: 0
host: 127.0.0.1
password:
port: 6379
timeout: 10000
解决办法:
直接把password去掉即可。
spring:
redis:
database: 0
host: 127.0.0.1
port: 6379
timeout: 10000
更多推荐
已为社区贡献20条内容
所有评论(0)