filmov
tv
Spring Annotation Tutorial - @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
Показать описание
#Alternative #of #RequestMapping #Annotation
Instagram: techtalk_debu
if you like my video, please subscribe to my channel and share the video
@RequestMapping(method = RequestMethod.GET) equivalent @GetMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.POST) equivalent @PostMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.PUT) equivalent @PutMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.DELETE) equivalent @DeleteMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.PATCH) equivalent @PatchMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.HEAD) equivalent @HeadMapping :- HTTP specific Method
In Class level mapping we need @RequestMapping : below example
@Controller
@RequestMapping(path = "/", produces = MediaType.APPLICATION_JSON_VALUE)
public class HomeController
{
@PostMapping(path = "/members")
//code
}
@PostMapping(path = "/members", produces = MediaType.APPLICATION_XML_VALUE)
//code
}
}
Thanks & Regards,
Debu Paul
Instagram: techtalk_debu
if you like my video, please subscribe to my channel and share the video
@RequestMapping(method = RequestMethod.GET) equivalent @GetMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.POST) equivalent @PostMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.PUT) equivalent @PutMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.DELETE) equivalent @DeleteMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.PATCH) equivalent @PatchMapping :- HTTP specific Method
@RequestMapping(method = RequestMethod.HEAD) equivalent @HeadMapping :- HTTP specific Method
In Class level mapping we need @RequestMapping : below example
@Controller
@RequestMapping(path = "/", produces = MediaType.APPLICATION_JSON_VALUE)
public class HomeController
{
@PostMapping(path = "/members")
//code
}
@PostMapping(path = "/members", produces = MediaType.APPLICATION_XML_VALUE)
//code
}
}
Thanks & Regards,
Debu Paul
Top 10 Spring Annotations to know in 2024
Spring & Spring Boot Annotations Series - #13 - @RequestMapping Annotation
Spring Annotation Tutorial - @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
Spring MVC Annotation | Controller, Configuration, RequestMapping, ComponentScan
Spring boot tutorial - @RequestMapping annotation with example
Spring boot Annotations (Controller Layer) | Controller, RestController, RequestMapping etc.
Mastering @RequestMapping Annotation in Spring Boot | Chapter-2
Spring MVC Using the Request Mapping Annotation
How to Build a REST API with Spring Boot and MySQL(Docker)
Spring Boot Annotation | Rest API Annotation |@Rest Controller |@Request Mapping | All Mapping
What is the difference between @RequestMapping and @GetMapping annotations in spring?
Spring Annotations Explained: Comprehensive Guide with Examples
Spring Annotation Tutorial for Beginners
Spring MVC Annotation | RequestParam
@Request Mapping Annotation in Spring MVC Full Game | Spring MVC Tutorial in HINDI
What is @RequestMapping annotation in Spring MVC? | javapedia.net
@controller annotation in spring MVC | @Requestmapping annotation in spring
25+ Spring and Spring Boot Annotations | 3 Hours Full Course | Interview Q&A
Spring boot Annotations
Spring MVC Controller | @Controller, @RequestMapping,@ResponseBody | Component Scan | MVC Annotation
Spring MVC Tutorials-3 Annotation(@) Based Controllers
Spring MVC Tutorials 07 - writing an annotation based controller class -@Controller, @RequestMapping
12. Online Courses - Spring Web MVC Flow - Class level Annotation for RequestMapping
Annotation | @RequestMapping | @Configuration | @ComponentScan | @Bean | @RestController | #5 |
Комментарии