1.分页中@RequestParam用法
@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "10") Integer pageSize
2.开启分页
PageHelper.startPage(pageNum,pageSize);
3.返回分页数据
List<Admin> list = adminMapper.selectAll(admin);
return PageInfo.of(list);