
mybatis
mybatis 运行机制分析
相关生产实践
firstuc
这个作者很懒,什么都没留下…
展开
-
04-mybatis statement执行
statement注册org.apache.ibatis.builder.MapperBuilderAssistant#addMappedStatement//namespace+methodnameid = applyCurrentNamespace(id, false);org.apache.ibatis.session.Configuration#addMappedStatemen...原创 2020-03-26 10:16:25 · 138 阅读 · 0 评论 -
03-mybatis mapper proxy
准备代理对象 public <T> void addMapper(Class<T> type) { if (type.isInterface()) { if (hasMapper(type)) { throw new BindingException("Type " + type + " is already known to the...原创 2020-03-26 09:12:51 · 115 阅读 · 0 评论 -
02-mybatis mapper初始化
mapper配置方式<!-- 使用相对于类路径的资源引用 --><mappers> <mapper resource="org/mybatis/builder/AuthorMapper.xml"/> <mapper resource="org/mybatis/builder/BlogMapper.xml"/> <mapper r...原创 2020-03-25 22:32:01 · 201 阅读 · 0 评论 -
01-mybatis配置初始化
mybatis提供了两种配置文案案:基于Xml或基于Api先看下mybatis提供的配置属性configuration(配置)properties(属性)settings(设置)typeAliases(类型别名)typeHandlers(类型处理器)objectFactory(对象工厂)plugins(插件)environments(环境配置)environment(环境变量)...原创 2020-03-25 21:25:56 · 113 阅读 · 0 评论 -
mybatis 源码环境搭建
下载源码在同一目录下,下载如下两个工程mybatis-parentmybatis-3编译源码编译parent在parent目录执行如下命令mvn clean install -Dmaven.test.skip编译mybatis-3首先得修改pom <parent> <groupId>org.mybatis</groupId>...原创 2020-03-25 20:35:17 · 420 阅读 · 0 评论