# 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自动创建必要的拦截器链。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flydean.com/spring-framework-documentation5/core-technologies/6.spring-aop-apis/6.3advisor-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
