In Spring Boot, to map HTTP GET requests to a specific handler method, the _____ annotation is used.

  • @GetMapping
  • @RequestMapping
  • @RequestMethod
  • @GetMappingRequestMapping
In Spring Boot, the @GetMapping annotation is used to map HTTP GET requests to a specific handler method. This annotation helps define which method should be invoked when a GET request is made to a particular URL. The other options are not used specifically for mapping GET requests in Spring Boot.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *