本文介绍了Spring事务管理器是否将连接绑定到线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我找到了以下线程:如何将JdbcTemplate与TransactionManager精确地配合使用?/a>
I found the following thread: How exactly JdbcTemplate with TransactionManager works together?
... is exactly what I want to know.
推荐答案
通常从连接池获得连接.当事务管理器启动事务时,从池中借用该连接,然后在事务完成时返回到池中.在此期间,连接绑定到线程.
It uses the same connection for the duration of the transaction. The request itself is irrelevant.
这篇关于Spring事务管理器是否将连接绑定到线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!