Package org.springframework.data.web
Annotation Interface SortDefault
Annotation to define the default
Sort
options to be used when injecting a Sort
instance into a
controller handler method.- Since:
- 1.6
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Wrapper annotation to allow declaring multipleSortDefault
annotations on a method parameter. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valueAlias forsort()
to make a declaration configuring fields only more concise.- Returns:
- Default:
- {}
-
sort
String[] sortThe properties to sort by by default. If unset, no sorting will be applied at all.- Returns:
- Default:
- {}
-
direction
Sort.Direction directionThe direction to sort by. Defaults toSort.Direction.ASC
.- Returns:
- Default:
- ASC
-
caseSensitive
boolean caseSensitiveSpecifies whether to apply case-sensitive sorting. Defaults to true.- Returns:
- Since:
- 2.3
- Default:
- true
-