Skip to content

Commit 7debeeb

Browse files
committed
Update spring-knowledge-and-questions-summary.md
1 parent 147fd4f commit 7debeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/system-design/framework/spring/spring-knowledge-and-questions-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ AOP(Aspect-Oriented Programming:面向切面编程)能够将那些与业务无
125125

126126
Spring AOP 就是基于动态代理的,如果要代理的对象,实现了某个接口,那么 Spring AOP 会使用 **JDK Proxy**,去创建代理对象,而对于没有实现接口的对象,就无法使用 JDK Proxy 去进行代理了,这时候 Spring AOP 会使用 **Cglib** 生成一个被代理对象的子类来作为代理,如下图所示:
127127

128-
![SpringAOPProcess](https://images.xiaozhuanlan.com/photo/2019/926dfc549b06d280a37397f9fd49bf9d.jpg)
128+
![SpringAOPProcess](https://img-blog.csdnimg.cn/img_convert/230ae587a322d6e4d09510161987d346.jpeg)
129129

130130
当然你也可以使用 **AspectJ** !Spring AOP 已经集成了 AspectJ ,AspectJ 应该算的上是 Java 生态系统中最完整的 AOP 框架了。
131131

0 commit comments

Comments
 (0)