Spring paging

Code 실제 코드가 아닌 예시 코드입니다. @Table(name = "community_post") @Entity @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) public class Post { ​ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String subject; private String content; } postRepository.findAll(PageRequest.of(0, 10)); 상황 Post(게시물) 을 Pagenation 사용하여 데이터를 조회하는 중에 데이터가 9개 이하일 때는 하나의 쿼리가 나가지만 10개 이상일 경우..
장똥구리
'Spring paging' 태그의 글 목록