Spring AOP源码剖析 一、代理对象创建 1.数据准备 @Component public class TestBeanAspect { public void testAop() { System.out.println("---------------------- test aop ---------------------"); } } @Component @Aspect public class TestAspect { @Pointcut("execution(* com.example.demo.entity.TestBeanAspect.testAop(..))") public void pointcut() { } @Before("pointcut()") public void before() { System.out.println("---------------------- aop before method --------------------"); } } @Configuration @ComponentScan({"com.example.demo"}) @EnableAspectJAutoProxy //开启s