Transaction

1.

In its default configuration, the Spring Framework's transaction infrastructure code only marks a transaction for rollback in the case of runtime, unchecked exceptions; that is, when the thrown exception is an instance or subclass of RuntimeException. (Errors will also - by default - result in a rollback). Checked exceptions that are thrown from a transactional method do not result in rollback in the default configuration.

 

2.

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(MethodInvocation)

posted @ 2017-09-28 20:22  nozbwang  阅读(121)  评论(0编辑  收藏  举报