@RequestMapping(value = “/edit”, method = RequestMethod.POST)
@ResponseBody
public String eidt(@RequestParam String v,@RequestBody String reqBody){
EditBugRepairResp resp;
if(v.equals(Constants.V)){
logger.info(“update bug reqBody” + reqBody);
try {
EditBugRepairReq req = JSON.parseObject(reqBody,EditBugRepairReq.class);
logger.info(“JSON 反序列化成功:” + req);
resp = bugRepairHandler.eidt(req);
} catch (JSONException e) {
logger.info(“JSON 反序列化失败!”);
resp = new EditBugRepairResp(RespEnum.JSON_DESERIALIZE);
}
} else {
resp = new EditBugRepairResp(RespEnum.V_ERROR);
}
return JSON.toJSONString(resp, true);
}
@ResponseBody
public String eidt(@RequestParam String v,@RequestBody String reqBody){
EditBugRepairResp resp;
if(v.equals(Constants.V)){
logger.info(“update bug reqBody” + reqBody);
try {
EditBugRepairReq req = JSON.parseObject(reqBody,EditBugRepairReq.class);
logger.info(“JSON 反序列化成功:” + req);
resp = bugRepairHandler.eidt(req);
} catch (JSONException e) {
logger.info(“JSON 反序列化失败!”);
resp = new EditBugRepairResp(RespEnum.JSON_DESERIALIZE);
}
} else {
resp = new EditBugRepairResp(RespEnum.V_ERROR);
}
return JSON.toJSONString(resp, true);
}
解决方案
20
贴异常啊。
20
你把堆栈信息打印一下嘛