> For the complete documentation index, see [llms.txt](https://docs.flydean.com/spring-framework-documentation5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flydean.com/spring-framework-documentation5/core-technologies/6.spring-aop-apis/6.3advisor-api.md).

# 6.3Advisor API

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

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

在同一个AOP代理中，可以在Spring中混合Advisor和Advice类型。例如，在一个代理配置中，你可以使用 interception around advice，抛出通知，并在通知之前使用拦截。Spring自动创建必要的拦截器链。
