Cannot change the ExecutorType when there is an existing transaction
[code="java"]
但凡使用mybatis,同时与spring集成使用时,接下来要说的这个问题是躲不了的。众所周知,mybatis的SqlSessionFactory在获取一个SqlSession时使用默认Executor或必须要指定一个Executor,这样一来,在同一个SqlSession的生命周期中,要想切换Executor是不可能的,比如在一个复杂业务中:
sqlSession...
原创
2013-10-23 19:45:42 ·
4567 阅读 ·
0 评论