GetMapping
GetMapping is a common annotation used in web frameworks, particularly in Java with the Spring framework, to map HTTP GET requests to specific handler methods. It is a declarative way to define the endpoints of a web application. When a client sends a GET request to a URL that matches a path specified in a GetMapping annotation, the corresponding method is invoked.
The GetMapping annotation is a specialized version of the RequestMapping annotation, specifically designed for the HTTP
Developers can also specify request parameters, headers, and media types that the handler method should accept.