Spring : Spring AOP源码解析
1. 美图 2. 使用 参考: SpringBoot之AOP之基本使用 3.寻找 <aop:aspectj-autoproxy/> 注解对应的解析器 但凡注解都有对应的解析器,以用来解析该注解的行为。全局搜索之后可发现 org.springframework.aop.config.AopNamespaceHandler 类中有对应的解析行为,代码如下: public class AopNamespaceHandler extends NamespaceHandlerSupport { /** * Register the {@link BeanDefinitionParser BeanDefinitionParsers} for the * '{@code config}', '{@code spring-configured}', '{@code aspectj-autoproxy}' * and '{@code scoped-proxy}' tags. */ @Override public void init ( ) { // In 2.0 XSD as well as in 2.1 XSD. registerBeanDefinitionParser ( "config" , new ConfigBeanDefinitionParser ( ) ) ;