只是已弃用的构造函数。代替
new PageRequest(firstResult, maxResults, new Sort(...))
您现在可以使用
PageRequest.of(firstResult, maxResults, Sort.by(...))
就是这样。

只是已弃用的构造函数。代替
new PageRequest(firstResult, maxResults, new Sort(...))
您现在可以使用
PageRequest.of(firstResult, maxResults, Sort.by(...))
就是这样。