<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 构造函数已被弃用

      PageRequest constructors have been deprecated(PageRequest 构造函数已被弃用)
        <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 构造函数已被弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                    <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>
                      • <tfoot id='QQzaV'></tfoot>

                            <tbody id='QQzaV'></tbody>