quarkus: Spring Data JPA's Pageable and @PageableDefault are not supported as Controller method types
Quarkus 0.22.0
Both Page result, Pageable params are not worked as expected.
https://github.com/hantsy/quarkus-sample/tree/master/spring-post-service
@GetMapping()
public ResponseEntity getAllPosts(
@RequestParam(value = "q", required = false) String keyword,
@RequestParam(value = "page", required = false, defaultValue = "0") int page,
@RequestParam(value = "size", required = false, defaultValue = "10") int size
/** //
@PageableDefault(page = 0, size = 10, sort = "createdDate", direction = Direction.DESC) Pageable page*/) {
//Page<Post> posts = this.postRepository.findAll(PageRequest.of(page, size));
List<Post> posts = this.postRepository.findAll();
return ok(posts);
}
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 15 (14 by maintainers)
@hantsy FYI, the issue you encountered with not being able to return
ResponseEntity<Page<Customer>>has now been fixed onmaster