摘要:
1:根据sqlId没有找到对应的MapperStatement,有可能是sql语句不存在、或者sqlId的名字和mapper方法中的名字对不上 Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid 阅读全文
摘要:
Executor在mybatis中主要是用来执行jdbc操作的,分为几个类型SimpleExecutor,batchExecutor,SqlSession类维护Executor, 在SqlSession需要操作数据库时,会委托给executor执行,下面通过源码分析一下: 看一下DefaultSql 阅读全文
摘要:
sqlSession,顾名思义,是一次sql的回话,它起到了承上启下的作用,这个类既维护了Configuration对象,又包含Executor对象,可以 执行jdbc操作,在mybatis体系中非常重要,下面我们来看一下这个类的源码: 1:sqlSession类的源码 SqlSession接口类定 阅读全文