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
精彩评论