Ver código fonte

修复类注解获取错误

zhouhao 7 anos atrás
pai
commit
f46c3726e7

+ 1 - 1
hsweb-authorization/hsweb-authorization-shiro/src/main/java/org/hswebframework/web/authorization/shiro/boost/BoostAuthorizationAttributeSourceAdvisor.java

@@ -95,7 +95,7 @@ public class BoostAuthorizationAttributeSourceAdvisor extends StaticMethodMatche
         if (null != authorize) {
             if (authorize.ignore()) return false;
         }
-        authorize = AopUtils.findAnnotation(targetClass, method, Authorize.class);
+        authorize = AopUtils.findAnnotation(targetClass, Authorize.class);
         if (null != authorize) {
             if (authorize.ignore()) return false;
         }