spring-aop

Spring AOP

  • 原文地址:
  • 原文作者:
  • 本文永久链接:
特别说明

当前文章内容迁移中,如有问题,请提交 issues 谢谢 ~~

AOP 的实现有两种

一种是采用动态代理,在执行过程中,获取对象,对对象进行装饰,增强对象的功能

一种是采用静态织入的方式,让编译器在编译期间就可以为对象创建指定的行为。

Spring AOP 和 Aspectj AOP

Spring 是运行时增强(基于代理)

Aspject 是编译时增强(基于字节码)

参考文章
Prev:
spring-bean-post-processor
Next:
spring-beandefinition
Contents of this article
Contents of this article