Web-service using spring in which I have to get the params from the body of my post request? The content of the body is like:-
source=”mysource” &json=
In class do like this
@RequestMapping(value = "/saveData", method = RequestMethod.POST) @ResponseBody public ResponseEntity saveData(HttpServletResponse response,Bean beanName) throws MyException { return new ResponseEntity(uiRequestProcessor.saveData(a),HttpStatus.OK); }
In page do like this: