spring mvc responseEntity

发布于 2017-05-25

@RequestMapping(value = "/something", method = RequestMethod.POST) public ResponseEntity<APIResult> handle(HttpEntity<byte[]> reques...


@ResponseBody 中文乱码

发布于 2016-12-30

1.在action中取得response,由他写入响应数据。 response.setHeader("Cache-Control", "no-cache"); response.setContentType("text/json;charset=UTF-8");...