Spring Boot 集成 Activiti5.22时出现mybatis事务管理紊乱

周小川 发布于 2017/08/09 15:44
阅读 770
收藏 0

集成过activiti的依赖包后,启动项目,控制台则会拼命刷新事务的开启和关闭。debug了一下是mybatis的ManagedTransaction 这个类。

打印的日志信息如下:

15:37:50.569 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:37:50.604 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
15:37:59.009 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:37:59.014 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
15:38:00.611 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:38:00.614 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
15:38:09.020 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:38:09.023 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
15:38:10.618 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:38:10.621 [Thread-7] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
15:38:19.032 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
15:38:19.035 [Thread-8] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [ProxyConnection[PooledConnection[com.mysql.jdbc.JDBC4Connection@3edb09b9]]]]
 

加载中
返回顶部
顶部