File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
docs/system-design/framework/spring Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ Spring AOP 已经集成了 AspectJ ,AspectJ 应该算的上是 Java 生态系
380380- ** After** (后置通知):目标对象的方法调用之后触发
381381- ** AfterReturning** (返回通知):目标对象的方法调用完成,在返回结果值之后触发
382382- ** AfterThrowing** (异常通知) :目标对象的方法运行中抛出 / 触发异常后触发。AfterReturning 和 AfterThrowing 两者互斥。如果方法调用成功无异常,则会有返回值;如果方法抛出了异常,则不会有返回值。
383- - ** Around** : (环绕通知)编程式控制目标对象的方法调用。环绕通知是所有通知类型中可操作范围最大的一种,因为它可以直接拿到目标对象,以及要执行的方法,所以环绕通知可以任意的在目标对象的方法调用前后搞事,甚至不调用目标对象的方法
383+ - ** Around** (环绕通知): 编程式控制目标对象的方法调用。环绕通知是所有通知类型中可操作范围最大的一种,因为它可以直接拿到目标对象,以及要执行的方法,所以环绕通知可以任意的在目标对象的方法调用前后搞事,甚至不调用目标对象的方法
384384
385385### 多个切面的执行顺序如何控制?
386386
Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ Spring 框架中,事务管理相关最重要的 3 个接口如下:
153153
154154** Spring 并不直接管理事务,而是提供了多种事务管理器** 。Spring 事务管理器的接口是: ** ` PlatformTransactionManager ` ** 。
155155
156- 通过这个接口,Spring 为各个平台如 JDBC(` DataSourceTransactionManager ` )、Hibernate(` HibernateTransactionManager ` )、JPA(` JpaTransactionManager ` )等都提供了对应的事务管理器,但是具体的实现就是各个平台自己的事情了。
156+
157+ 通过这个接口,Spring为各个平台如: JDBC (` DataSourceTransactionManager ` )、Hibernate(` HibernateTransactionManager ` )、JPA(` JpaTransactionManager ` )等都提供了对应的事务管理器,但是具体的实现就是各个平台自己的事情了。
157158
158159** ` PlatformTransactionManager ` 接口的具体实现如下:**
159160
You can’t perform that action at this time.
0 commit comments