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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
