开发者

Does Spring (3) have any built in support for pagination?

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 Sprin开发者_JS百科g (3) have support for pagination?


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.


Spring Data has support for web pagination, as described here:

http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/repositories.html#web-pagination

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜