Skip to content
Advertisement

PageRequest constructors have been deprecated

I’m working the Spring Data Commons v2+ snapshot, and I see that the constructors for a PageRequest have been deprecated. This appears to have occurred between M1 & M2. Unfortunately, this is the only [real] implementation of the Pageable interface. I’m wondering where the effort is heading, and what a better alternative would be for current development.

Advertisement

Answer

It’s just the constructors which have been deprecated. Instead of

JavaScript

you can now use

JavaScript

and that’s it.

Advertisement