spring boot springboot 集成的 mybatis 设置 executorType 为 batch模式 网站开发 发表于2024-06-22 浏览9082 评论0 springboot 集成的 mybatis 设置 executorType 为 batch模式 三种执行器 mybatis提供三种sql执行器,分别是SIMPLE(默认)、REUSE、BATCH。 SIMPLE(SimpleExecutor),相当于JDBC的stmt.execute(sql) 执行完毕即关闭即 stmt.close() REUSE(ReuseExecutor),相当于JDBC的stmt.execute(sql) 执行完不关闭,而是将stmt存