alexxiyang / shiro-redis

shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
MIT License
1.17k stars 446 forks source link

使用redis哨兵模式时 连接redis哨兵报错NOAUTH Authentication required #164

Open Ccccccai777 opened 1 year ago

Ccccccai777 commented 1 year ago

在getJedis方法中初始化JedisSentinelPool调用的构造方法不会设置redis哨兵的密码导致NOAUTH Authentication required jedisPool = new JedisSentinelPool(masterName, sentinels, getJedisPoolConfig(), timeout, soTimeout, password, database);

hopefullyhh commented 1 year ago

我也碰到了同样的问题,您那边是如何解决的