Question - What do you understand by @RequestMapping annotation?
Answer -
@RequestMapping annotation is used for mapping a particular HTTP request method to a specific class/ method in 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