httpsession
1.HttpServletrequest获取
Httpsession session = request.getSession();
2.HttpServletRequest request = ((ServletRequestAttributes)RequestcontextHolder.getRequestAttributes()).getRequest()
HttpSession session = request.getSession();
3.在Filter中获取
相关阅读
作为一名 Java Web 应用开发者,你已经快速学习了 request(HttpServletRequest)和 session(HttpSession)作用域。在设计和构建 Java Web