From fdb35d757d7f2a2605bad95e922650224e4232ba Mon Sep 17 00:00:00 2001 From: wuy <1311695042@qq.com> Date: Tue, 6 Aug 2019 17:02:38 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=BC=93=E5=AD=98=EF=BC=8C=E9=80=9A=E8=BF=87=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/diboot/shiro/authz/cache/MemoryCondition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diboot-shiro/src/main/java/com/diboot/shiro/authz/cache/MemoryCondition.java b/diboot-shiro/src/main/java/com/diboot/shiro/authz/cache/MemoryCondition.java index 3a90685..c32f8b9 100644 --- a/diboot-shiro/src/main/java/com/diboot/shiro/authz/cache/MemoryCondition.java +++ b/diboot-shiro/src/main/java/com/diboot/shiro/authz/cache/MemoryCondition.java @@ -18,7 +18,7 @@ public class MemoryCondition implements Condition { public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { //获取配置信息 Boolean enableCached = context.getEnvironment().getProperty(AuthCacheProperties.CACHE_PREFIX + ".permission-caching-enabled", Boolean.class); - enableCached = enableCached == null ? true : enableCached; + enableCached = enableCached == null ? false : enableCached; AuthCacheProperties.CacheWay cacheWay = context.getEnvironment().getProperty(AuthCacheProperties.CACHE_PREFIX + ".cache-way", AuthCacheProperties.CacheWay.class); cacheWay = cacheWay == null ? AuthCacheProperties.CacheWay.MEMORY : cacheWay; return enableCached && AuthCacheProperties.CacheWay.MEMORY.equals(cacheWay);