From 130575f20e7ed479b32f05f4c3d4b27031546344 Mon Sep 17 00:00:00 2001 From: Wizzercn Date: Mon, 12 Mar 2018 11:33:35 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=8D=87=E7=BA=A7=E9=83=A8=E5=88=86j?= =?UTF-8?q?ar=E5=8C=85=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 42 +++++++++---------- .../shiro/pam/AnySuccessfulStrategy.java | 3 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/pom.xml b/pom.xml index 85ad2ce31..c1264ce5a 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ UTF-8 9.4.2.v20170220 - 1.r.65-SNAPSHOT + 1.r.66-SNAPSHOT @@ -114,7 +114,7 @@ com.vdurmont emoji-java - 3.2.0 + 4.0.0 org.quartz-scheduler @@ -124,22 +124,33 @@ org.apache.shiro shiro-web - 1.2.5 + 1.4.0 org.apache.shiro shiro-core - 1.2.5 + 1.4.0 + + + org.apache.shiro + shiro-ehcache + 1.4.0 + + + ehcache-core + net.sf.ehcache + + org.slf4j slf4j-log4j12 - 1.7.21 + 1.7.25 org.slf4j slf4j-api - 1.7.21 + 1.7.25 log4j @@ -149,7 +160,7 @@ com.alibaba druid - 1.0.28 + 1.1.9 com.alibaba @@ -164,7 +175,7 @@ mysql mysql-connector-java - 5.1.41 + 5.1.45 net.sourceforge.jtds @@ -179,7 +190,7 @@ net.sf.ehcache ehcache - 2.10.3 + 2.10.4 redis.clients @@ -206,17 +217,6 @@ commons-lang3 3.4 - - org.apache.shiro - shiro-ehcache - 1.3.2 - - - ehcache-core - net.sf.ehcache - - - commons-beanutils commons-beanutils-core @@ -225,7 +225,7 @@ com.ibeetl beetl - 2.5.2 + 2.7.27 commons-collections diff --git a/wk-framework/src/main/java/cn/wizzer/framework/shiro/pam/AnySuccessfulStrategy.java b/wk-framework/src/main/java/cn/wizzer/framework/shiro/pam/AnySuccessfulStrategy.java index 10ec96399..6b4bf34e0 100644 --- a/wk-framework/src/main/java/cn/wizzer/framework/shiro/pam/AnySuccessfulStrategy.java +++ b/wk-framework/src/main/java/cn/wizzer/framework/shiro/pam/AnySuccessfulStrategy.java @@ -23,7 +23,6 @@ import org.apache.shiro.authc.*; import org.apache.shiro.authc.pam.AbstractAuthenticationStrategy; import org.apache.shiro.realm.Realm; -import org.apache.shiro.util.CollectionUtils; import org.nutz.lang.Lang; import java.util.Collection; @@ -50,7 +49,7 @@ public AuthenticationInfo beforeAllAttempts(Collection realms, * realm be used. */ protected AuthenticationInfo merge(AuthenticationInfo info, AuthenticationInfo aggregate) { - if (aggregate != null && !CollectionUtils.isEmpty(aggregate.getPrincipals())) { + if (aggregate != null && !Lang.isEmpty(aggregate.getPrincipals())) { return aggregate; } return info != null ? info : aggregate;