Browse Source

DATACMNS-1193 - Fixed typo in JavaDoc and reference documentation of PageableDefaults.

Original pull request: #218.
pull/301/head
stonio 9 years ago committed by Oliver Gierke
parent
commit
38d39a47e9
  1. 2
      src/main/asciidoc/repositories.adoc
  2. 2
      src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java

2
src/main/asciidoc/repositories.adoc

@ -936,7 +936,7 @@ public String showUsers(Model model, @@ -936,7 +936,7 @@ public String showUsers(Model model,
you have to populate `foo_page` and `bar_page` etc.
The default `Pageable` handed into the method is equivalent to a `new PageRequest(0, 20)` but can be customized using the `@PageableDefaults` annotation on the `Pageable` parameter.
The default `Pageable` handed into the method is equivalent to a `new PageRequest(0, 20)` but can be customized using the `@PageableDefault` annotation on the `Pageable` parameter.
[[core.web.pageables]]
==== Hypermedia support for Pageables

2
src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java

@ -89,7 +89,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe @@ -89,7 +89,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Configures the {@link Pageable} to be used as fallback in case no {@link PageableDefault} or
* {@link PageableDefaults} (the latter only supported in legacy mode) can be found at the method parameter to be
* {@link PageableDefault} (the latter only supported in legacy mode) can be found at the method parameter to be
* resolved.
* <p>
* If you set this to {@literal null}, be aware that you controller methods will get {@literal null} handed into them

Loading…
Cancel
Save