Spring (3) 是否有内置的分页支持?

发布于 2024-09-18 18:38:34 字数 240 浏览 5 评论 0原文

我有一个需要分页的模型(书籍列表 - 正如上一个问题中所解释的。)。

这似乎是一个足够常见的功能,我希望有一些预先构建的解决方案,而无需构建自定义解决方案。

Spring(3)支持分页吗?

I have a model I need to paginate (Book listings - as explained in a previous question.).

This seems like a common enough feature that I would expect some pre-built solutions for it without having to build a custom solution.

Does Spring (3) have support for pagination?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

百思不得你姐 2024-09-25 18:38:35

其中包括一些辅助类。例如,有一个名为 org.springframework.beans.support.PagedListHolder 的类。分页的解决方案有很多种,具体取决于您愿意做出的权衡,因此没有一种单一的公认方法可以实现这一点。 本文有一个很好的概述。

There are some helper classes included. For instance there's a class called org.springframework.beans.support.PagedListHolder. There are a number of solutions to pagination depending on what trade-offs you're willing to make, so there is no one single accepted way to do it. This article has a good overview.

吝吻 2024-09-25 18:38:35

Spring Data 支持 Web 分页,如下所述:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文