一句话:
openSession()方法获得Connection对象,而实际上,基于Spring Transaction体系,如果此处正在事务中时,已经有和当前线程绑定的Connection对象,就是存储在ThreadLocal中。
mybatis结合spring事务
猜你喜欢
转载自blog.csdn.net/weixin_39312465/article/details/89884237
今日推荐
周排行