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 withPathVariableorRequestParam.PageableHandlerMethodArgumentResolver- to allow injection ofPageableinstances into controller methods automatically created from request parameters.SortHandlerMethodArgumentResolver- to allow injection ofSortinstances into controller methods automatically created from request parameters.
HateoasPageableHandlerMethodArgumentResolver- instead ofPageableHandlerMethodArgumentResolverHateoasSortHandlerMethodArgumentResolver- instead ofSortHandlerMethodArgumentResolverPagedResourcesAssembler- for injection into web componentsSortHandlerMethodArgumentResolver- for injection ofPagedResourcesAssemblerinto controller methods
- Since:
- 1.6
- Author:
- Oliver Gierke
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImport selector to registerQuerydslWebConfigurationas configuration class if Querydsl is on the classpath.static classImport selector to import the appropriate configuration class depending on whether Spring HATEOAS is present on the classpath.