怎么用mybatis

一般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/

  https://github.com/abel533/Mapper/wiki/1.3-spring-boot

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

 

高级使用:

https://blog.csdn.net/apicescn/article/details/79507610

 

mybatis的注解开发之三种动态sql

https://www.cnblogs.com/guoyafenghome/p/9123442.html

http://www.mybatis.org/mybatis-3/zh/statement-builders.html

 

 

      

posted @ 2018-09-01 20:03  变换  阅读(202)  评论(0编辑  收藏  举报