使用get请求发送多个参数
在每一个参数前面添加@RequestParam注解即可
/**
* 分页查询学生
*
* @return
*/
@GetMapping("/getPageStudent")
@ResponseBody
@ApiOperation(value = "分页查询学生", httpMethod = "GET")
public PageInfo<Student> getPageStudent(@RequestParam Integer pageNum,
@RequestParam Integer pageSize,
@RequestParam(required = false) String studentCondition) {
PageInfo<Student> studentPageInfo = studentService.getPageStudent(pageNum,pageSize,studentCondition);
return studentPageInfo;
}