Annotation Interface RequestMethod
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@RequirementMeta(type=STORING)
public @interface RequestMethod
Specifies the HTTP request methods that are supported by the service method.
This annotation can be applied to methods or classes.
- Since:
- 2.3.0-SNAPSHOT
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefines the HTTP request methods that are supported.
-
Element Details
-
value
Defines the HTTP request methods that are supported. By default, it includes POST and GET methods.- Returns:
- An array of HTTP methods.
- Default:
- {POST, GET}
-