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

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Hypermedia representation types supported.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The hypermedia type to be supported.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Configures which WebStacks we're supposed to enable support for.
  • Element Details

    • stacks

      WebStack[] stacks
      Configures which WebStacks 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 like WebClient but don't want to use hypermedia operations with it.
      Returns:
      Default:
      {WEBMVC, WEBFLUX}