SpringAOP源码分析

基于注解方式
首先在配置类中加上@EnableAspectJAutoProxy注解用来开启aop
点进注解
在这里插入图片描述
使用@Import方式注册了一个类
在这里插入图片描述
其中在这里插入图片描述
跟到最后在这里插入图片描述
发现其实是注册了AnnotationAwareAspectJAutoProxyCreator.class这个类,那么这个类是做什么的呢
在这里插入图片描述
主要是这个父类的方法在工作
在这里插入图片描述 在createBean中的这个方法上调用了AbstractAutoProxyCreator,基本上会返回null,不是重点,略过。