File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
docs/system-design/framework/spring Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,10 @@ AOP(Aspect-Oriented Programming:面向切面编程)能够将那些与业务无
9393
9494### 4.2 Spring AOP 和 AspectJ AOP 有什么区别?
9595
96- ** Spring AOP 属于运行时增强,而 AspectJ 是编译时增强。** Spring AOP 基于代理(Proxying),而 AspectJ 基于字节码操作(Bytecode Manipulation)。
96+ 1 . ** Spring AOP 属于运行时增强,而 AspectJ 是编译时增强。**
97+ 2 . ** Spring AOP** 基于** 代理(Proxying)** ,而 ** AspectJ** 基于** 字节码操作(Bytecode Manipulation)** 。
9798
98- Spring AOP 已经集成了 AspectJ ,AspectJ 应该算的上是 Java 生态系统中最完整的 AOP 框架了。AspectJ 相比于 Spring AOP 功能更加强大,但是 Spring AOP 相对来说更简单,
99+ 3 . ** Spring AOP** 已经集成了 AspectJ ,AspectJ 应该算的上是 Java 生态系统中最完整的 AOP 框架了。AspectJ 相比于 Spring AOP 功能更加强大,但是 Spring AOP 相对来说更简单,
99100
100101如果我们的切面比较少,那么两者性能差异不大。但是,当切面太多的话,最好选择 AspectJ ,它比Spring AOP 快很多。
101102
You can’t perform that action at this time.
0 commit comments