Annotation Interface EnableSpringDataWebSupport
@Retention(RUNTIME)
@Target({TYPE,ANNOTATION_TYPE})
@Inherited
@Import({SpringDataWebConfigurationImportSelector.class,QuerydslActivator.class})
public @interface EnableSpringDataWebSupport
Annotation to automatically register the following beans for usage with Spring MVC. Note that using this annotation
will require Spring 3.2.
DomainClassConverter
- to allow usage of domain types managed by Spring Data repositories as controller method arguments bound withPathVariable
orRequestParam
.PageableHandlerMethodArgumentResolver
- to allow injection ofPageable
instances into controller methods automatically created from request parameters.SortHandlerMethodArgumentResolver
- to allow injection ofSort
instances into controller methods automatically created from request parameters.
HateoasPageableHandlerMethodArgumentResolver
- instead ofPageableHandlerMethodArgumentResolver
HateoasSortHandlerMethodArgumentResolver
- instead ofSortHandlerMethodArgumentResolver
PagedResourcesAssembler
- for injection into web componentsSortHandlerMethodArgumentResolver
- for injection ofPagedResourcesAssembler
into controller methods
- Since:
- 1.6
- Author:
- Oliver Gierke
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Import selector to registerQuerydslWebConfiguration
as configuration class if Querydsl is on the classpath.static class
Import selector to import the appropriate configuration class depending on whether Spring HATEOAS is present on the classpath.