Annotation Type 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
    • Field Detail

      • DEFAULT_ERROR_RESPONSE_STATUS

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

      • errorResponseStatus

        org.springframework.http.HttpStatus errorResponseStatus
        Default:
        org.springframework.http.HttpStatus.NOT_FOUND