redis.clients.jedis.exceptions.JedisDataException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?

描述:java使用jedis连接服务器上的redis,遇到的报错。

问题:
redis.clients.jedis.exceptions.JedisDataException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
翻译:没有为默认用户配置任何密码。 您确定您的配置正确吗?

然后在redis的配置文件中搜索,密码相关的设置。发现了密码被我注释起来了。把注释删掉即可。
image

再次回到项目中,进行测试。成功
image

posted @ 2022-06-18 21:56  小洋ssr  阅读(5358)  评论(0编辑  收藏  举报