2023.03.09 Spring CGLIB动态代理下的事务执行流程
2023-03-27 21:28:27 1 举报
Spring CGLIB动态代理下的事务执行流程
作者其他创作
大纲/内容
txInfo = {TransactionAspectSupport$TransactionInfo@7576} \
invocation.proceedWithInvocation()
commitTransactionAfterReturning
txObject = {DataSourceTransactionManager$DataSourceTransactionObject@8896} newConnectionHolder = false mustRestoreAutoCommit = false connectionHolder = null previousIsolationLevel = null readOnly = false savepointAllowed = true
CGLIB事务使用的AOPorg.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry#DefaultAdvisorAdapterRegistrythis.adapters = {ArrayList@8145} size = 3 0 = {MethodBeforeAdviceAdapter@8152} 1 = {AfterReturningAdviceAdapter@8164} 2 = {ThrowsAdviceAdapter@8165}
DefaultTransactionStatus
CGLIB动态代理下的事务执行流程版本 v5.3.25日期:2023.03.09
status = {DefaultTransactionStatus@6911} transaction = {DataSourceTransactionManager$DataSourceTransactionObject@6872} newTransaction = true newSynchronization = true readOnly = false debug = false suspendedResources = null rollbackOnly = false completed = false savepoint = null
TransactionAttribute
txAttr = {RuleBasedTransactionAttribute@8449} \
DataSourceTransactionObject
TransactionManager
基于JDBC的TransactionManagertm = {JdbcTransactionManager@8805} exceptionTranslator = null lazyInit = true dataSource = {HikariDataSource@8817} \"HikariDataSource (null)\" enforceReadOnly = false logger = {LogAdapter$Slf4jLocationAwareLog@8818} transactionSynchronization = 0 defaultTimeout = -1 nestedTransactionAllowed = true validateExistingTransaction = false globalRollbackOnParticipationFailure = true failEarlyOnGlobalRollbackOnly = false rollbackOnCommitFailure = false
Connection
font color=\"e74f4c\
TransactionInfo
newCon = {HikariProxyConnection@7461} \"HikariProxyConnection@1270823096 wrapping com.mysql.cj.jdbc.ConnectionImpl@3b218c74\" delegate = {ConnectionImpl@7419} poolEntry = {PoolEntry@7418} \
事务相关对象及属性
0 条评论
下一页