Skip to content

Provide a simple way to customize configuration of default pageable and sort resolvers [DATACMNS-822] #1284

Closed
@spring-projects-issues

Description

@spring-projects-issues

Vedran Pavic opened DATACMNS-822 and commented

Currently there is no way (AFAIK) to customize the properties of default pageable and sort resolvers provided by SpringDataWebConfiguration and its subclasses. Users have to register their own resolver instance and take care of everything SpringDataWebConfiguration does by default which is quite tedious.

This could be done using callback interfaces which the users can implement and register as Beans that customize the default configuration of the PageableHandlerMethodArgumentResolver and SortHandlerMethodArgumentResolver.

I've got the change implemented using the described approach in my fork:
https://github.com/vpavic/spring-data-commons/tree/DATACMNS-822

If you find this change useful I'll submit the PR


Issue Links:

  • DATACMNS-1016 EnableSpringDataWebSupport does not let you customise the PageableHandlerMethodArgumentResolver
    ("is duplicated by")

Referenced from: pull request #208

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions