Update ShiroConfig.java

pull/5930/head
EightMonth 2024-02-29 17:43:56 +08:00
parent cee872000a
commit acf0713385
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public class ShiroConfig {
Map<String, Object> controllers = context.getBeansWithAnnotation(RestController.class); Map<String, Object> controllers = context.getBeansWithAnnotation(RestController.class);
for (Object bean : controllers.values()) { for (Object bean : controllers.values()) {
if (!(bean instanceof Advised)) { if (!(bean instanceof Advised)) {
return null; continue;
} }
Class<?> beanClass = ((Advised) bean).getTargetSource().getTarget().getClass(); Class<?> beanClass = ((Advised) bean).getTargetSource().getTarget().getClass();
RequestMapping base = beanClass.getAnnotation(RequestMapping.class); RequestMapping base = beanClass.getAnnotation(RequestMapping.class);