@RequestMapping("esword")
@ResponseBody
public void inertEsWord(HttpServletRequest request, HttpServletResponse response){
String content = "星星之火可以燎原";
// 返回数据
OutputStream out= null;
try {
out = response.getOutputStream();
response.setHeader("Last-Modified", String.valueOf(content.length()));
response.setHeader("ETag",String.valueOf(content.length()));
response.setContentType("text/plain; charset=utf-8");
out.write(content.getBytes("utf-8"));
out.flush();
} catch (IOException e) {
e.printStackTrace();
}
LOGGER.info(content+"这是读取数据值");
}