登录时: httpSession.setAttribute("team", team);在其他接口中获取:HttpSession session = request.getSession(); Team team=(Team)session.getAttribute("team");