@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface RouterOperation
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
beanClass
The class of the Handler bean.
|
String |
beanMethod
The method of the handler Bean.
|
String[] |
consumes
Narrows the primary mapping by media types that can be consumed by the
mapped handler.
|
String[] |
headers
The headers of the mapped request, narrowing the primary mapping.
|
org.springframework.web.bind.annotation.RequestMethod[] |
method
The HTTP request methods to map to, narrowing the primary mapping:
GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.
|
io.swagger.v3.oas.annotations.Operation |
operation
The swagger operation description
Alias for
Operation . |
Class<?>[] |
parameterTypes
The parameters of the handler method.
|
String |
path
The path mapping URIs (e.g.
|
String[] |
produces
Narrows the primary mapping by media types that can be produced by the
mapped handler.
|
public abstract String path
"/profile"
).
Path mapping URIs may contain placeholders (e.g. "/${profile_path}"
).public abstract org.springframework.web.bind.annotation.RequestMethod[] method
public abstract String[] consumes
Content-Type
header. Examples:
consumes = "text/plain" consumes = {"text/plain", "application/*"} consumes = MediaType.TEXT_PLAIN_VALUE
public abstract String[] produces
"Accept"
header but may be derived from query parameters, or other. Examples:
produces = "text/plain" produces = {"text/plain", "application/*"} produces = MediaType.TEXT_PLAIN_VALUE produces = "text/plain;charset=UTF-8"
public abstract String[] headers
Same format for any environment: a sequence of "My-Header=myValue" style expressions, with a request only mapped if each such header is found to have the given value.
public abstract Class<?> beanClass
public abstract String beanMethod
public abstract Class<?>[] parameterTypes
Copyright © 2021. All rights reserved.