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

答案解析

在 SqlSessionFactory 配置中指定 defaultExecutorType,或通过 SqlSessionFactory.openSession(ExecutorType) 手动指定。