org.springframework.web.bind.annotation

Annotation Type PostMapping



  • @Target(value=METHOD)
     @Retention(value=RUNTIME)
     @Documented
     @RequestMapping(method=POST)
    public @interface PostMapping
    Annotation for mapping HTTP POST requests onto specific handler methods.

    Specifically, @PostMapping is a composed annotation that acts as a shortcut for @RequestMapping(method = RequestMethod.POST).

    Since:
    4.3
    Author:
    Sam Brannen
    See Also:
    GetMapping, PutMapping, DeleteMapping, PatchMapping, RequestMapping