<tfoot id='Xy8TB'></tfoot>
<legend id='Xy8TB'><style id='Xy8TB'><dir id='Xy8TB'><q id='Xy8TB'></q></dir></style></legend>

      <bdo id='Xy8TB'></bdo><ul id='Xy8TB'></ul>
  1. <i id='Xy8TB'><tr id='Xy8TB'><dt id='Xy8TB'><q id='Xy8TB'><span id='Xy8TB'><b id='Xy8TB'><form id='Xy8TB'><ins id='Xy8TB'></ins><ul id='Xy8TB'></ul><sub id='Xy8TB'></sub></form><legend id='Xy8TB'></legend><bdo id='Xy8TB'><pre id='Xy8TB'><center id='Xy8TB'></center></pre></bdo></b><th id='Xy8TB'></th></span></q></dt></tr></i><div id='Xy8TB'><tfoot id='Xy8TB'></tfoot><dl id='Xy8TB'><fieldset id='Xy8TB'></fieldset></dl></div>

    <small id='Xy8TB'></small><noframes id='Xy8TB'>

    1. PageRequest 构造函数已被弃用

      时间:2024-08-24
        <tfoot id='j4tEw'></tfoot>

      1. <i id='j4tEw'><tr id='j4tEw'><dt id='j4tEw'><q id='j4tEw'><span id='j4tEw'><b id='j4tEw'><form id='j4tEw'><ins id='j4tEw'></ins><ul id='j4tEw'></ul><sub id='j4tEw'></sub></form><legend id='j4tEw'></legend><bdo id='j4tEw'><pre id='j4tEw'><center id='j4tEw'></center></pre></bdo></b><th id='j4tEw'></th></span></q></dt></tr></i><div id='j4tEw'><tfoot id='j4tEw'></tfoot><dl id='j4tEw'><fieldset id='j4tEw'></fieldset></dl></div>

        • <small id='j4tEw'></small><noframes id='j4tEw'>

                <tbody id='j4tEw'></tbody>
              <legend id='j4tEw'><style id='j4tEw'><dir id='j4tEw'><q id='j4tEw'></q></dir></style></legend>
                <bdo id='j4tEw'></bdo><ul id='j4tEw'></ul>

                本文介绍了PageRequest 构造函数已被弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在处理 Spring Data Commons v2+ 快照,我看到 PageRequest 的构造函数已被弃用.这似乎发生在 M1 &M2.不幸的是,这是 Pageable 接口的唯一 [真正] 实现.我想知道努力的方向是什么,以及对于当前的开发有什么更好的选择.

                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.

                推荐答案

                只是构造函数被弃用了.而不是

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

                new PageRequest(firstResult, maxResults, new Sort(...))
                

                你现在可以使用

                PageRequest.of(firstResult, maxResults, Sort.by(...))
                

                就是这样.

                这篇关于PageRequest 构造函数已被弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Spring中List到Page的转换 下一篇:xml配置中的多个jpa:repositories,如何使用Spring java config配置@EnableJPA

                相关文章

                <i id='QQzaV'><tr id='QQzaV'><dt id='QQzaV'><q id='QQzaV'><span id='QQzaV'><b id='QQzaV'><form id='QQzaV'><ins id='QQzaV'></ins><ul id='QQzaV'></ul><sub id='QQzaV'></sub></form><legend id='QQzaV'></legend><bdo id='QQzaV'><pre id='QQzaV'><center id='QQzaV'></center></pre></bdo></b><th id='QQzaV'></th></span></q></dt></tr></i><div id='QQzaV'><tfoot id='QQzaV'></tfoot><dl id='QQzaV'><fieldset id='QQzaV'></fieldset></dl></div>

                <small id='QQzaV'></small><noframes id='QQzaV'>

                1. <legend id='QQzaV'><style id='QQzaV'><dir id='QQzaV'><q id='QQzaV'></q></dir></style></legend>
                  • <bdo id='QQzaV'></bdo><ul id='QQzaV'></ul>
                2. <tfoot id='QQzaV'></tfoot>