注解加上 produces = {"text/plain;charset=UTF-8"}
例如
@RequestMapping(value = "doDeal", method = RequestMethod.POST, produces = {"text/plain;charset=UTF-8"})
如果想返回json
改成 produces = {"application/json;charset=UTF-8"}即可.
注解加上 produces = {"text/plain;charset=UTF-8"}
例如
@RequestMapping(value = "doDeal", method = RequestMethod.POST, produces = {"text/plain;charset=UTF-8"})
如果想返回json
改成 produces = {"application/json;charset=UTF-8"}即可.