一、通过设置response编码解决 response.setCharacterEncoding("utf-8"); 二、设置requestMapping的product属性解决 @ResponseBody @RequestMapping(value = "/addSite", method = RequestMethod.POST,produces = "text/plain;charset=utf-8")
一、通过设置response编码解决 response.setCharacterEncoding("utf-8"); 二、设置requestMapping的product属性解决 @ResponseBody @RequestMapping(value = "/addSite", method = RequestMethod.POST,produces = "text/plain;charset=utf-8")