1.导入包:
import org.springframework.data.domain.Pageable;
2.测试类:
@Test
public void whenQuerySeccess() throws Exception{
mockMvc.perform(
get("/user")
//分页查询参数,第三页,每页15个数据,按照年龄倒序排序
.param("size","15")
.param("page","3")
.par