mirror of https://github.com/jeecgboot/jeecg-boot
Update ShiroConfig.java
parent
cee872000a
commit
acf0713385
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue