Spring / Spring Interview questions II
What are the RequestMapping Variants in Spring MVC framework?
Spring Framework 4.3 introduces the method-level composed variants of the @RequestMapping annotation that helps simplifying the mappings for common HTTP methods and better express the semantics of the annotated handler method. For example, a @GetMapping can be interpreted as a GET @RequestMapping.
- @GetMapping.
- @PostMapping.
- @PutMapping.
- @DeleteMapping.
- @PatchMapping.
More Related questions...