import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
Sort sort=Sort.by(Direction.DESC, "id");//排序 算法 字段
Pageable pageable = PageRequest.of(0, 1,sort);//页数 条数
Spring JPA 分页,排序
最新推荐文章于 2024-08-07 18:13:39 发布