Creating controller

If your model and repository classes are complete, then you are ready to create the controller class where we will create the GetMapping, PostMappingPutMapping, and DeleteMapping to create RESTful API URL paths. Let's create a controller class named UserController.kt using the @RestController annotation to create the controller class:

@RestController
class UserController {
----
----
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.67.5