HttpMessageNotReadableException: Required request body is missing (Occasional) - SpringMVC Default Controller Request Mapping HTTP Method?
问题 I have the following code which represents an Ajax POST request: @RequestMapping("/participant/insertEvent") public boolean insertEvent(Principal principal, @RequestBody String json, HttpServletRequest request) throws Exception { //... //return true or false } JS: $.ajax({ type : "post", dataType : "json", url : '/app/participant/insertEvent', data : JSON.stringify({'p1': p1, 'p2' : p2}) }); The app is deployed in Production and everything has been working with many users the whole week. This