@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Documented public @interface FeaturesAreActive
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).
| Modifier and Type | Fields and Description |
|---|---|
static org.springframework.http.HttpStatus |
DEFAULT_ERROR_RESPONSE_STATUS |
| Modifier and Type | Required Element and Description |
|---|---|
String[] |
features |
| Modifier and Type | Optional Element and Description |
|---|---|
org.springframework.http.HttpStatus |
errorResponseStatus |
int |
responseStatus
Deprecated.
use {
errorResponseStatus() instead}. |
public static final org.springframework.http.HttpStatus DEFAULT_ERROR_RESPONSE_STATUS
public abstract String[] features
@Deprecated public abstract int responseStatus
errorResponseStatus() instead}.Copyright © 2021. All rights reserved.