Redisson報錯 At least two sentinels should be defined in Redis configuration!

最近使用Redisson 3.9.1 實現分佈式鎖時,啓動報錯

nested exception is org.redisson.client.RedisConnectionException: At least two sentinels should be defined in Redis configuration!

 我是用的是哨兵模式,並且Redis只部署了一個節點。當切換成單機模式時,這個問題沒有發生。經查閱,這是Redisson在3.9.x版本中的bug,在3.10版本中已經修復。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章