报错信息
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注释掉