随笔分类 - mybatis
摘要:文章目录 一、MyBatis1、是什么2、干什么 二、MyBatis 优点和缺点2.1优点2.2、缺点 三、MyBatis 核心类3.1、SqlSession3.2、SqlSessionFactory3.3、SqlSessionFacotryBuilder Mybatis的执行流程四、Mybatis
阅读全文
摘要:一、Mbatis分页 通过GitHub插件 进行mybatis分页数据获取 (无前台实现) 原理 : 通过geiHub的 1主配置文件加载GitHub插件 <plugins> <plugin interceptor="com.github.pagehelper.PageInterceptor"></
阅读全文
摘要:一 、动态sql if choose (when, otherwise) trim (where, set) foreach 1、动态sql查询 注意 查询的时候数据 常见的 动态 查询 where 可以直接让and添加 不需要在 语句写where 1=1 来调了 根据传进的值不同 调用的sql语句
阅读全文