HttpServletResponse

response.setContentType("text/xml;charset=UTF-8");
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);

response.getWriter().write(text);
response.getWriter().flush();
response.getWriter().close();

posted @ 2018-05-25 10:54  馳騁衿琾  阅读(88)  评论(0编辑  收藏  举报