SpringBoot+mybatis+pagehelper實現分頁:resultType="map"

1)       pom.xml中添加pagehelper相關依賴:pagehelper使用第一步

2)       application.properties配置文件:第10行可去掉

3)       springboot應用查詢入口

4)       AccountMapper.xml映射文件

5)       AccountMapper接口

6)       Service層的接口和類:pagehelper使用第三步
 

7)       配置pagehelperpagehelper使用第二步

8)       測試類與測試結果

9)       項目結構


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章