最近項目中使用了redisson的哨兵模式來做爲redis操做的客戶端,而後一個意外出現了,啓動報:Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'create' threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0。具體錯誤以下:java
通過不懈的努力,最終定位到出現這個問題是由於配置redisson客戶端的時候把redis的master的名稱配錯了,就出現了這個問題,把redis.master.name修改正確之後就完美解決這個問題了。由於我在網上沒有搜索到解決辦法,最後本身解決了就記錄一下,但願能夠幫到你!redis