mirror of https://gitee.com/y_project/RuoYi.git
修复未被代理类匿名访问失效问题(IB4EJ0)
parent
e0aad97d59
commit
a47b6e350e
|
@ -37,11 +37,15 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
|
|||
Map<String, Object> controllers = applicationContext.getBeansWithAnnotation(Controller.class);
|
||||
for (Object bean : controllers.values())
|
||||
{
|
||||
if (!(bean instanceof Advised))
|
||||
Class<?> beanClass;
|
||||
if (bean instanceof Advised)
|
||||
{
|
||||
continue;
|
||||
beanClass = ((Advised) bean).getTargetSource().getTarget().getClass();
|
||||
}
|
||||
else
|
||||
{
|
||||
beanClass = bean.getClass();
|
||||
}
|
||||
Class<?> beanClass = ((Advised) bean).getTargetSource().getTarget().getClass();
|
||||
RequestMapping base = beanClass.getAnnotation(RequestMapping.class);
|
||||
String[] baseUrl = {};
|
||||
if (Objects.nonNull(base))
|
||||
|
|
Loading…
Reference in New Issue