@GetMapping
Also written: @PostMapping, @PutMapping, @DeleteMapping
Connects a handler method to one HTTP method and path. @GetMapping("/hello") answers GET /hello.
Also written: @PostMapping, @PutMapping, @DeleteMapping
Connects a handler method to one HTTP method and path. @GetMapping("/hello") answers GET /hello.