org.springframework.web.bind.annotation

Annotation Type GetMapping



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

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

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