Spring Framework 7.026.Spring 中的面向切面编程(三)
除了 @AspectJ 注解风格,Spring 还提供了基于 XML Schema 的方式来配置 AOP。这种方式不需要使用注解,而是通过 Spring 特定的 XML 命名空间来定义切面、切入点和通知。
Schema 命名空间
要使用基于 Schema 的 AOP 配置,需在 XML 配置文件中引入 aop
命名空间:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
<