加入
produces = "text/plain;charset=utf-8"
例子:
@RequestMapping(value = "/user/updatepwd", method = { RequestMethod.POST }, produces = "text/plain;charset=utf-8")
@ResponseBody
public ResponseModel updatePassword(){
ResponseModel responseModel=new ResponseModel();
responseModel.setResponseCode(1);
responseModel.setMessage("该用户未找到");
return responseModel;
}