电光石火-穿越时空电光石火-穿越时空


redisson单机模式启动报错

报错信息

Factory method 'redisson' threw exception; nested exception is org.redisson.client.RedisConnectionException: Unable to connect to Redis server: /127.0.0.1:6379

Caused by: org.redisson.client.RedisException: ERR Client sent AUTH, but no password is set. channel: [id: 0xd70ac938, L:/127.0.0.1:11349 - R:/127.0.0.1:6379] command: (AUTH), params: (password masked)

异常:没有设置密码(本地Redis没有设置密码)
因为我们没有设置密码,在配置文件里写了password:,创建RedissonClient客户端的时候会解析RedisProperties配置成""空字符串导致启动报错

解决方案:

在yml配置中把空password注释掉

本博客所有文章如无特别注明均为原创。作者:似水的流年
版权所有:《电光石火-穿越时空》 => redisson单机模式启动报错
本文地址:http://www.ilkhome.cn/index.php/archives/786/
欢迎转载!复制或转载请以超链接形式注明,文章为 似水的流年 原创,并注明原文地址 redisson单机模式启动报错,谢谢。

评论