- 一、所需依赖
- 二、引入Service代码
二、引入Service代码com.github.pagehelper pagehelper-spring-boot-starter1.2.12
public Object findPage(int pageNum, int pageSize) {
//pageNum为起始页数,pageSize为每次查询多少页
PageHelper.startPage(pageNum, pageSize);
AccountExample example = new AccountExample();
return mapper.selectByExample(example );
}



