Mybatis中如何指定使用哪一种Executor执行器?

提问者:帅平 问题分类:面试刷题
Mybatis中如何指定使用哪一种Executor执行器?
1 个回答
也不长发及腰
也不长发及腰
在Mybatis配置文件中,在设置(settings)可以指定默认的ExecutorType执行器类型,也可以手动给DefaultSqlSessionFactory的创建SqlSession的方法传递ExecutorType类型参数,如SqlSession openSession(ExecutorType execType)。
发布于:1周前 (04-21) IP属地:四川省
我来回答