오류 문구
No primary or single unique constructor found for interface org.springframework.data.domain.Pageable
수정 내용
@GetMapping("/posts")
public ResponseEntity<ApiResponse> readPostAll(final Pageable pageable) {
return ResponseEntity.ok(ApiResponse.ok(
postService.readPostAll(pageable)
));
}
```
public Page<Post> readPostAll(Pageable pageable) {
return postRepository.findAll(pageable);
}
```
간단히 페이저블로 변경