Annotation Interface FeaturesAreActive


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented public @interface FeaturesAreActive
Annotate a Controller or a controller method to only activate it when all the features given in the features() attribute are active.

If the features are not activated, a response with the status code given by the errorResponseStatus() attribute is generated (HttpStatus.NOT_FOUND (404) by default).

Author:
ractive, m-schroeer
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    org.springframework.http.HttpStatus
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.springframework.http.HttpStatus
     
  • Field Details

    • DEFAULT_ERROR_RESPONSE_STATUS

      static final org.springframework.http.HttpStatus DEFAULT_ERROR_RESPONSE_STATUS
  • Element Details

    • errorResponseStatus

      org.springframework.http.HttpStatus errorResponseStatus
      Default:
      NOT_FOUND