pagenation1 [Spring] Pageable 다중 Sorting | PageableDefault | Pagination SQL을 Pageable을 이용하여 나타내기 select * from luvket.luvkets order by status desc, created_at desc limit 0, 25; 위와 같은 SQL문을 Spring 에서 Pageable을 이용하여 표현한다면 이렇게 나타낼 수 있습니다. 1 2 3 4 5 6 7 8 9 @GetMapping("") public LuvketResponse search(@PageableDefault(size = 25) @SortDefault.SortDefaults({ @SortDefault(sort = "status", direction = Sort.Direction.DESC), @SortDefault(sort = "createdAt", direction = Sort.D.. 2020. 1. 9. 이전 1 다음