springboot后端获取session,前端页面 session存取,退出登录时清空session中的数据,详情见项目 enroll-online-edu-sys(入学预约登记)
1、退出清空session@RequestMapping("/logout")publicStringlogout(HttpServletRequestrequest,HttpSessionsession){Integeruserid=(Integer)session.getAttribute("adminId");Objectusername=session.getAttribute("admi