Is it possible to map same path (uri) in request mapping for two different post methods, only difference is request body.
Example
@RequestMapping(value = "/hello", method = RequestMethod.POST)
public String helloEmployee(@RequestBody Employee employee) {
return "Hello Employee";
}
@RequestMapping(value = "/hello", method = RequestMethod.POST)
public String helloStudent(@RequestBody Student student) {
return "Hello Student";
}