摘要:
前面说过mybatis是靠Executor来执行sql的,Executor的类型又分了三种。 public enum ExecutorType { SIMPLE, REUSE, BATCH } 默认是SIMPLE这一种。可以在全局配置文件中通过下面配置改变 <settings> <setting n 阅读全文
posted @ 2021-07-24 22:33
蒙恬括
阅读(163)
评论(0)
推荐(0)
摘要:
先来看下使用: 打印sql语句和执行的时间 1:实现 Interceptor 接口 @Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class, Integ 阅读全文
posted @ 2021-07-24 21:31
蒙恬括
阅读(108)
评论(0)
推荐(0)
摘要:
使用Mybatis 1:全局配置文件:mybatis-config.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "htt 阅读全文
posted @ 2021-07-24 18:42
蒙恬括
阅读(185)
评论(0)
推荐(0)

浙公网安备 33010602011771号