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
}