用的Redis是windows版本,6.2.6
報錯的主要信息如下:
Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'redisson' threw exception; nested exception is org.redisson.client.RedisConnectionException: Unable to connect to Redis server: 127.0.0.1/127.0.0.1:6379
org.redisson.client.RedisException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?. channel: [id: 0x78c78239, L:/127.0.0.1:53460 - R:127.0.0.1/127.0.0.1:6379] command: (AUTH), params: (password masked)
開始排查使用Redis-cli進行測試:發現Redis啟動正常:
?自己用了一些其他的demo進行測試也是可以連接Redis的,使用Redis連接管理工具也是可以連接的,但是這個 若依-plus-vue 啟動的時候就是報上面的錯誤。
解決方案:
把yaml文件中連接Redis 的配置的密碼字段改為 auth,然后發現就可以了。
目前我也沒搞明白,什么時候用password,什么時候用auth,我另一個demo項目,用的也是redis-windows-6.2.6,? 但是使用password字段就可以連接。。。感覺與redis-starter的版本有關。