What is @PutMapping with example Spring & Spring Boot Annotations Series#17
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- In this video, we are going to discuss about the @PutMapping Annotation in Spring Framework.
we will see with an example
Spring Annotation
Spring Boot Annotation
-----------------------------------
@PutMapping
- @PutMapping is a shortcut for @RequestMapping(method = RequestMethod.PUT). It is used to map HTTP PUT requests to handler methods in your Spring MVC controllers.Purpose In summary, the purpose of @PutMapping is to:
Define a handler method that handles HTTP PUT requests.
Map the handler method to a specific URL pattern.
Provide a cleaner and more readable alternative to using @RequestMapping(method = RequestMethod.PUT)
#putmapping #springannotation #springboot #spring @springframework1335#springFramework