结合切点指示器来使用.
配置表达式, 格式为:
注解+(切点指示器+表达式格式)
/*** 定义注解切点*///@Pointcut("@annotation(AroundDemo.annotation.InterceptClass)") 拦截注解标注的方法的(如果注解放在类上面就失效)@Pointcut("@within(AroundDemo.annotation.InterceptClass)")//拦截注解标注的类上的所有方法public void tokenIntercept() {}
