When designing RESTful APIs in Spring Boot, the _____ annotation can be used to handle HTTP GET requests specifically.

  • @PostMapping
  • @GetMapping
  • @RequestMapping
  • @RequestHeader
In Spring Boot, the @GetMapping annotation is specifically used to handle HTTP GET requests. It maps a method to a GET request for a particular URI, making it a crucial part of designing RESTful APIs in Spring Boot. The other options are used for different HTTP request types and are not suitable for handling GET requests.
Add your answer
Loading...

Leave a comment

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