From cd6bb2ca04c4dcd8ddbf58c9f42f1398ce3b6658 Mon Sep 17 00:00:00 2001 From: Sam Xu Date: Wed, 17 Jul 2024 16:16:33 +0800 Subject: [PATCH] Update ShiroConfig.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当使用redis的sentinel模式时,如果设置了redis的密码但未设置sentinel密码,会造成失败。NOAUTH Authentication required. --- .../src/main/java/org/jeecg/config/shiro/ShiroConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index 59bef2e1..704f24be 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -290,7 +290,7 @@ public class ShiroConfig { RedisSentinelManager sentinelManager = new RedisSentinelManager(); sentinelManager.setMasterName(redisProperties.getSentinel().getMaster()); sentinelManager.setHost(String.join(",", redisProperties.getSentinel().getNodes())); - sentinelManager.setPassword(redisProperties.getSentinel().getPassword()); + sentinelManager.setPassword(redisProperties.getPassword()); sentinelManager.setDatabase(redisProperties.getDatabase()); return sentinelManager;