随笔分类 -  Mybatis

Mybatis源码解析
摘要:一:sql标签的使用 通过sql片段达到代码重复利用 例: <sql id="sqlcont"> select count(*) </sql> <sql id="sqlselect"> select * </sql> <sql id="sqlcontent"> from user </sql> <s 阅读全文
posted @ 2019-05-25 19:03 Don'tYouSee 阅读(213) 评论(0) 推荐(0)
摘要:Mybatis开源Plugin中最熟知的pagehelper,重点made in China 很多人开始用pagehelper时候,肯定很纳闷,以mysql为例,明明没有加limit语句,为什么打印出来的sql中有了limit语句了,这是怎么回事???插件在什么地方给sql加上了limit,为什么又 阅读全文
posted @ 2019-05-04 17:20 Don'tYouSee 阅读(699) 评论(1) 推荐(1)