mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
Update ShiroConfig.java
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user