码迷,mamicode.com
首页 > 其他好文 > 详细

怎么用mybatis

时间:2018-09-01 21:56:50      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:XML   并且   page   bat   ali   int   nbsp   .com   tis   

一般mybatis的用法。mapper-spring-boot-starter  + PageHelper分页插件。

 

1,PageHelper分页插件 。

  https://blog.csdn.net/u014082617/article/details/71215539/

  https://blog.csdn.net/zcwforali/article/details/78171418

  原理是拦截sql,自动帮助你完善sql分页语句。并且帮助你实现count sql统计。

 

2,mapper-spring-boot-starter。

  https://www.jianshu.com/p/866cccd377b5

  https://mapperhelper.github.io/docs/1.integration/

  省去xml文件配置,简化了开发。挺好用的。

      

怎么用mybatis

标签:XML   并且   page   bat   ali   int   nbsp   .com   tis   

原文地址:https://www.cnblogs.com/chen-msg/p/9571416.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!