Servlet中Session的使用
参考Struts2中Cookie的使用:https://www.cnblogs.com/batj/p/9109295.html
- 创建Session
HttpSession se = request.getSession();
se.setAttribute("hello", "world");
- 获取Session
HttpSession se = request.getSession();
System.out.println(se.getAttribute("hello"));
凝一眸碧水,拈一缕清风,于一怀静谧中倾听凡尘的落音。
不再奢求什么,做简单的自己,过简单的生活,心在,梦在,你在,便是光阴赐予我的最美。