diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index 2355988d..b36700d0 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -328,7 +328,7 @@ public class ShiroConfig { Map controllers = context.getBeansWithAnnotation(RestController.class); for (Object bean : controllers.values()) { if (!(bean instanceof Advised)) { - return null; + continue; } Class beanClass = ((Advised) bean).getTargetSource().getTarget().getClass(); RequestMapping base = beanClass.getAnnotation(RequestMapping.class);