I have this controller method:
@PostMapping( value = \"/createleave\", params = {\"start\",\"end\",\"hours\",\"username\"}) public void creat
You should use @RequestBody instead of using @RequestParam And you should provide whole object as a body of request @RequestParam is to get data from URL
@RequestBody
@RequestParam
you can do something like public saveUser(@RequestBody User user) { do something with user }
public saveUser(@RequestBody User user) { do something with user }
and it will be mapped as User object for example