//切入注解@RequestMapping
@Around("@annotation(request)")
public Object aroundThree(ProceedingJoinPoint proceedingJoinPoint,RequestMapping request) throws Throwable
{
System.out.println("aop---------------------------------------------------------------------");
System.out.println(Arrays.toString(request.value()));
System.out.println("aop---------------------------------------------------------------------");
return proceedingJoinPoint.proceed();
}
@Around("execution(* org.sxdata.jingwei.controller.*.*(..))")
public Object aroundThree(ProceedingJoinPoint proceedingJoinPoint) throws Throwable
{
Signature signature = proceedingJoinPoint.getSignature();
MethodSignature methodSignature = (MethodSignature)signature;
Method targetMethod = methodSignature.getMethod();
System.out.println(Arrays.toString(targetMethod.getAnnotation(RequestMapping.class).value()));
System.out.println(proceedingJoinPoint.getSignature().getName());
return proceedingJoinPoint.proceed();
}