SpringBoot连接Redis报错:ERR AUTH <password> called without any password configured for the default user.
一 问题描述Redis默认没有密码,SpringBoot向Redis中保存数据时报错。二 解决方案打开redis.conf配置文件,找到requirepass foobared这一行,并取消注释,密码就是foobared。
·
一 问题描述
Redis默认没有密码,SpringBoot向Redis中保存数据时报错:
io.lettuce.core.RedisCommandExecutionException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
截图:

二 解决方案
打开redis.conf配置文件,找到requirepass foobared这一行,并取消注释,密码就是foobared。

更多推荐



所有评论(0)