|
@@ -182,10 +182,16 @@ public class ShiroAutoconfiguration {
|
|
|
@Aspect
|
|
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
|
|
static class MethodInterceptorHolderAdvisor {
|
|
|
- @Around(value = "@annotation(org.hswebframework.web.authorization.annotation.RequiresExpression)" +
|
|
|
- "||@annotation(org.hswebframework.web.authorization.annotation.RequiresDataAccess)" +
|
|
|
- "||@annotation(org.hswebframework.web.authorization.annotation.Authorize)" +
|
|
|
- "||within(@org.hswebframework.web.authorization.annotation.Authorize *)")
|
|
|
+ @Around(value = "@annotation(org.hswebframework.web.authorization.annotation.RequiresExpression)"
|
|
|
+ + "||@annotation(org.hswebframework.web.authorization.annotation.RequiresDataAccess)"
|
|
|
+ + "||@annotation(org.hswebframework.web.authorization.annotation.Authorize)"
|
|
|
+ + "||("
|
|
|
+ + "within(@org.hswebframework.web.authorization.annotation.Authorize *) "
|
|
|
+ + "&& ("
|
|
|
+ + "@annotation(org.springframework.web.bind.annotation.RequestMapping)||"
|
|
|
+ + "execution(org.hswebframework.web.controller.message.ResponseMessage *(..)"
|
|
|
+ + ")))"
|
|
|
+ )
|
|
|
public Object around(ProceedingJoinPoint pjp) throws Throwable {
|
|
|
MethodSignature signature = (MethodSignature) pjp.getSignature();
|
|
|
String methodName = AopUtils.getMethodBody(pjp);
|