@Target(value=METHOD) @Retention(value=RUNTIME) @Documented @RequestMapping(method=POST) public @interface PostMapping
POST
requests onto specific handler
methods.
Specifically, @PostMapping
is a composed annotation that
acts as a shortcut for @RequestMapping(method = RequestMethod.POST)
.
GetMapping
,
PutMapping
,
DeleteMapping
,
PatchMapping
,
RequestMapping
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
consumes
Alias for
RequestMapping.consumes() . |
java.lang.String[] |
headers
Alias for
RequestMapping.headers() . |
java.lang.String |
name
Alias for
RequestMapping.name() . |
java.lang.String[] |
params
Alias for
RequestMapping.params() . |
java.lang.String[] |
path
Alias for
RequestMapping.path() . |
java.lang.String[] |
produces
Alias for
RequestMapping.produces() . |
java.lang.String[] |
value
Alias for
RequestMapping.value() . |
@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String name
RequestMapping.name()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] value
RequestMapping.value()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] path
RequestMapping.path()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] params
RequestMapping.params()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] headers
RequestMapping.headers()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] consumes
RequestMapping.consumes()
.@AliasFor(annotation=RequestMapping.class) public abstract java.lang.String[] produces
RequestMapping.produces()
.