#Using Pageable with @RepositoryRestController getting null on sort

1 messages · Page 1 of 1 (latest)

storm axle
#

When I use Pageable in a method and put the sort on request I get 'uriTemplate' must not be null
When using in a @RespositoryRestResource, the sort works well.
Anybody knows why?

    @GetMapping("/users")
    @ResponseBody
    public ResponseEntity<?> findAll(Pageable pageRequest, Authentication authentication) {
        return ResponseEntity.ok(pageRequest.toString()); // Gets uriTemplate null when request with /users?sort=anything
    }
orchid gardenBOT
#

<@&1004656351647117403> please have a look, thanks.