/**
* 提交评价
* @param orderId
* @param model
* @return
*/
@RequestMapping(value = "/getStar", method = RequestMethod.POST)
public @ResponseBody JsonObj getStar(@RequestParam(value = "pjxq") int pjxq, @RequestParam(value = "id") int id, Model model, HttpServletResponse response) {
JsonObj jo = new JsonObj();
Fblb fblb = new Fblb();
fblb.setPjxq(pjxq);
fblb.setId(id);
fblbService.getStar(fblb);
jo.setSuccess(true);
response.setContentType("text/plain;charset=UTF-8");
return jo;
}
只需在返回json对象前设置response.setContentType("text/plain;charset=UTF-8");即可。