-- 基于表达式方式
AspectJExpressionPointcut cut = new AspectJExpressionPointcut();cut.setExpression("* com.xx.service..*.*(..))");Advisor advisor = new DefaultPointcutAdvisor(cut,实现MethodInterceptor接口);-- 注解形式DefaultPointcutAdvisor advisor = new DefaultPointcutAdvisor(new AnnotationMatchingPointcut(null, XX.class),,实现MethodInterceptor接口);advisor.setOrder(0);