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

浙公网安备 33010602011771号