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
. (Error
s 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)