I have an API for front side,I use postman to send a single number 8.
I want to send like this way in Postman
@RequestMapping(value="/query",method=RequestMethod.POST)
@ResponseBody
public String query(@RequestBody Integer number ){
return dao.query(number);
}
but now the front side say they can not send a single word with no key-value in json,I don't want to create an object just use that once to binding, how can I do this?