The @RequestMapping annotation in Spring Framework is used for mapping a particular HTTP request method to a specific class/ method in the controller that will be handling the respective request. This annotation can be applied at both levels:
- Class level: Maps the URL of the request
- Method level: Maps the URL as well as HTTP request method
Get your Spring Certification today to become certified.