1. 程式人生 > >pageable多字段排序問題

pageable多字段排序問題

rec creat col http new Pageable code pre ger

Sort sort = new Sort(Sort.Direction.DESC, "createdate")
 .and(new Sort(Sort.Direction.AES, "id"));
Pageable pageable = new PageRequest(1, 10, sort)

技術分享圖片

pageable多字段排序問題