Mapping HTTP Methods
Learn Mapping HTTP Methods (Controllers, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HTTP method mapping means telling Spring which verb a handler accepts: use @GetMapping , @PostMapping , @PutMapping , @DeleteMapping , @PatchMapping , or @RequestMapping(method = ...) . Meaning of verbs : GET reads, POST creates, PUT replaces, PATCH changes part, DELETE removes. Wrong verb on a known path returns 405 Method Not Allowed with an Allow header.