@AspectJ support

@AspectJ 作为一种申报方面的样式,它使用带注解的常规 Java 类进行注解。@AspectJ 样式由 AspectJ 项目 作为 AspectJ 5 版本的一部分进行介绍。Spring 使用 AspectJ 5 提供的库对相同的注解进行解释,进行切入点解析和匹配。但是,AOP 运行时仍然是纯 Spring AOP,不依赖于 AspectJ 编译器或编织器。

@AspectJ refers to a style of declaring aspects as regular Java classes annotated with annotations. The @AspectJ style was introduced by the AspectJ project as part of the AspectJ 5 release. Spring interprets the same annotations as AspectJ 5, using a library supplied by AspectJ for pointcut parsing and matching. The AOP runtime is still pure Spring AOP, though, and there is no dependency on the AspectJ compiler or weaver.

使用 AspectJ 编译器和织入器能够使用完整的 AspectJ 语言,在 Using AspectJ with Spring Applications 中进行了讨论。

Using the AspectJ compiler and weaver enables use of the full AspectJ language and is discussed in Using AspectJ with Spring Applications.