解决Redisson出现Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'create' threw e

1、背景

  最近项目中使用了redisson的哨兵模式来做为redis操做的客户端,而后一个意外出现了,启动报:Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'create' threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0。具体错误以下:java

2、出现缘由以及解决方式

  通过不懈的努力,最终定位到出现这个问题是由于配置redisson客户端的时候把redis的master的名称配错了,就出现了这个问题,把redis.master.name修改正确之后就完美解决这个问题了。由于我在网上没有搜索到解决办法,最后本身解决了就记录一下,但愿能够帮到你!redis

相关文章
相关标签/搜索