> For the complete documentation index, see [llms.txt](https://doc.shiker.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.shiker.tech/spring-he-xin-gong-neng/6.-spring-aop-api/6.3.-spring-zhong-de-advisor-api.md).

# 6.3. Spring 中的 Advisor API

在 Spring 中，Advisor 是一个仅包含一个与切入点表达式关联的切面对象的切面。

除了介绍的特殊情况外，任何Advisor都可以与任何切面一起使用。 `org.springframework.aop.support.DefaultPointcutAdvisor`是最常用的Advisor类。它可以与`MethodInterceptor`、`BeforeAdvice`或 `ThrowsAdvice`一起使用。

可以在同一个 AOP 代理中混合 Spring 中的Advisor和切面类型。例如，您可以在一个代理配置中对通知、抛出通知和通知之前使用拦截。Spring 自动创建必要的拦截器链。
