Backend Development
Spring Boot
Subjective
Oct 03, 2025
Explain @RequestMapping vs @GetMapping, @PostMapping.
Detailed Explanation
@RequestMapping is generic for all HTTP methods. @GetMapping, @PostMapping are specialized:\n\n@RequestMapping(value="/users", method=RequestMethod.GET)\n// Same as:\n@GetMapping("/users")\n\n@PostMapping is shortcut for @RequestMapping with POST method.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts