@Aspect 拦截器相关
2021-05-01 08:28
标签:poi etc rgs tsig method private join gets 获取 @Aspect 拦截器相关 标签:poi etc rgs tsig method private join gets 获取 原文地址:https://www.cnblogs.com/qlsty/p/12147118.html执行时机:在HandlerInterceptor
@Pointcut("execution(* com.jbs.oms.aggreg.web.controller.*.*.*(..))")
private void excudeController() {
}
@Before("excudeController()")
public void before(JoinPoint joinPoint) {
//通过joinPoint可以获取request相关参数:
Object[] args = joinPoint.getArgs();
//获取当前方法对象:
MethodJoinPoint point = (MethodJoinPoint)joinPoint;
Signature signature = point.getSignature();
Method method = signature.getMethod();
//获取当前类:
joinPoint.getTarget().getClass();
}
上一篇:ajax表单上传图片和数据
下一篇:URL URN URI 的区别