java - How to get both String body and object mapped from JSON? -


i have controller handle requests:

@requestmapping(value = {"", "/create"}, method = requestmethod.post) @responsebody  public responseentity<string> create(@valid @requestbody somerequest body,                                       httpservletrequest request) {     //... } 

it turned out need both object mapped json , request body string value, add response body in json format. question - possible keeping current validation , mapping method?


Comments