Annotation Interface EnableHypermediaSupport
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Import({org.springframework.hateoas.config.HypermediaConfigurationImportSelector.class,HateoasConfiguration.class,org.springframework.hateoas.config.WebStackImportSelector.class})
public @interface EnableHypermediaSupport
Activates hypermedia support in the
ApplicationContext
. Will register infrastructure beans to support all
appropriate web stacks based on selected HypermediaMappingInformation
-type as well as the classpath.- Author:
- Oliver Gierke, Greg Turnquist
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Hypermedia representation types supported. -
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe hypermedia type to be supported. -
Optional Element Summary
-
Element Details
-
type
The hypermedia type to be supported.- Returns:
-
-
-
stacks
WebStack[] stacksConfigures whichWebStack
s we're supposed to enable support for. By default we're activating it for all available ones if they happen to be in use. Configure this explicitly in case you're using WebFlux components likeWebClient
but don't want to use hypermedia operations with it.- Returns:
- Default:
- {WEBMVC, WEBFLUX}
-