springboot+mybatis+pagehelper

springboot+mybatis+pagehelper整合

springboot   版本2.1.2.RELEASE

mybatis  版本3.5

pagehelper 版本5.18

支持在mapper接口上直接写sql语句,支持在xml文件里写sql语句,支持分页查询,支持自定义sql语句

注意在生成mybatisGenerator文件时,可能在xml文件中生成了多个selectByExampleWithRowbounds语句,保留一个即可。

项目结构

application.properties文件

下载地址:

链接:https://pan.baidu.com/s/1o6gDaVAgOK-yj_owylBQkA 

提取码:v7oy

猜你喜欢

转载自www.cnblogs.com/moris5013/p/10743607.html