I am working on a snapshot of Spring Data Commons v2 +, and I see that the constructors for PageRequest are deprecated. This apparently happened between M1 and M2 . Unfortunately, this is the only [real] implementation of the Pageable interface. I wonder where the effort is going, and what is the best alternative for the current development.
PageRequest
Pageable
These are just constructors that are out of date. Instead
new PageRequest(firstResult, maxResults, new Sort(...))
now you can use
PageRequest.of(firstResult, maxResults, new Sort(...))
and what is he.
Source: https://habr.com/ru/post/1269370/More articles:Explanation of code for checking CSS.supports () before using it - javascriptDo not access the "getSubTypes" target in creating a Weblogic user - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1269367/how-to-programatically-group-lap-times-into-teams-to-minimize-difference&usg=ALkJrhgf8S8tDFWfN6IA0BfqOwsP5QT3tQYou can always convert `int` to` float` - cHow to extract 8 integers from 256 vectors using intel intrinsics? - cAs always, launch the application from a pop-up screen, and then for the last time - javaUsing the file system as a video source for offline playback - javascriptHow to print all txt files inside a folder using java script - javascriptThe function is similar to Promise.some / any for an unknown amount of promises - javascriptPowershell script stops working when task scheduler starts - scriptingAll Articles