In Spring Boot, _____ annotation is used to map HTTP POST requests onto specific handler methods.

  • @Controller
  • @GetMapping
  • @PostMapping
  • @RequestMapping
In Spring Boot, the @PostMapping annotation is used to map HTTP POST requests onto specific handler methods in a controller class. When you apply this annotation to a method, it tells Spring that this method should be invoked when an HTTP POST request with a matching URL is received. It's a key annotation for handling POST requests in a RESTful API.
Add your answer
Loading...

Leave a comment

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