Method-Level Mapping
Learn Method-Level Mapping (Controllers, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Method-level mapping binds a single handler method to a URL and HTTP method with @GetMapping , @PostMapping , @PutMapping , @DeleteMapping or @RequestMapping(method = ...) . Combined with the class : a class-level @RequestMapping("/users") gives a prefix, and each method adds its own path to it. Shortcut annotations are composed annotations: @GetMapping is just @RequestMapping(method = RequestMethod.GET) .