2023.10.25
1.可以设置http头标
response.setHeader("Refresh","3"); //三秒刷新页面一次
2.可以设置cookie
Cookie c1 = new Cookie("username","only"); response.addCookie(c1);
3.可以输出返回数据
HttpServleteResponse.getOutputStream().write();
标签:HttpServletResponse,Cookie,设置,头标,c1,response From: https://www.cnblogs.com/RynerLee/p/17788412.html