Kotlin Spring MVC RequestMapping RESTful APIs with @GetMapping, @PostMapping, @PutMapping, @DeleteMapping | SpringBoot Example
In the tutorial, JavaSampleApproach shows you how to create Kotlin Spring MVC RequestMapping RESTful APIs with @GetMapping
, @PostMapping
, @PutMapping
, @DeleteMapping
using SpringBoot.
Related posts:
@ org.springframework.web.bind.annotation.GetMapping
@GetMapping
acts as a shortcut for @RequestMapping(method = RequestMethod.GET)
.
@GetMapping("/")
fun getAll(): MutableMap{
...
}
@ org.springframework.web.bind.annotation.PostMapping
@PostMapping
acts as a shortcut for @RequestMapping(method = RequestMethod.POST)
.More at:
Kotlin Spring MVC RequestMapping RESTful APIs with @GetMapping, @PostMapping, @PutMapping, @DeleteMapping | SpringBoot Example
#kotlin #springmvc #springboot #requestmapping #getmapping #postmapping