I checked with params attribute we can narrow down the request to specific handler in case there are multiple defined for same URI, how can we achieve the same in case of PostMapping.
@PostMapping(value="newUser")
public String addNewUser(@RequestBody User user)
{}
@PostMapping(value="newUser")
public String addAnotherUser(@RequestBody AnotherUser user)
{}
Basically, two different handlers with different input request body type parameter with same URI.