Skip to content

Spring Data Pageable Sort in Feign Client #146

@sebastian3456

Description

@sebastian3456

The new pageable support in version 2.1.1 can't handle the sorting in the pageable.

Here is my code:
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) Page<T> findAll(@RequestParam("parameters") Map<String, Collection<String>> parameters, @RequestBody Pageable page);

When I call this method size and page parameters are mapped fine, sorting is not working.
Let's expect I have a pageable with a sort on id,asc.
So the request url should look like example.com/api/test?page=0&size=10&sort=id,ASC
But the actual request url looks like example.com/api/test?page=0&size=10&sort=id&sort=ASC

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions