From 35196d3c623199823c837bb08570202184ea0f25 Mon Sep 17 00:00:00 2001 From: Sviatoslav Hryb Date: Wed, 28 Apr 2021 16:37:59 +0300 Subject: [PATCH] Fix aspect autodetection description Closes gh-26862 --- src/docs/asciidoc/core/core-aop.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/asciidoc/core/core-aop.adoc b/src/docs/asciidoc/core/core-aop.adoc index c350ce8171..1e06a1b55b 100644 --- a/src/docs/asciidoc/core/core-aop.adoc +++ b/src/docs/asciidoc/core/core-aop.adoc @@ -316,7 +316,7 @@ other class. They can also contain pointcut, advice, and introduction (inter-typ declarations. .Autodetecting aspects through component scanning -NOTE: You can register aspect classes as regular beans in your Spring XML configuration or +NOTE: You can register aspect classes as regular beans in your Spring XML configuration, using `@Bean` factory method or autodetect them through classpath scanning -- the same as any other Spring-managed bean. However, note that the `@Aspect` annotation is not sufficient for autodetection in the classpath. For that purpose, you need to add a separate `@Component` annotation