Sort sort = new Sort(Sort.Direction.DESC,"points1"); //points1列明 desc降序 asc升序
PageRequest pageable = new PageRequest(pageNo - 1, pageSize,sort);压入pageable对象
在你使用jpa时候又想排序又想分页就得
最新推荐文章于 2022-12-08 15:56:59 发布
Sort sort = new Sort(Sort.Direction.DESC,"points1"); //points1列明 desc降序 asc升序
PageRequest pageable = new PageRequest(pageNo - 1, pageSize,sort);压入pageable对象