文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>SpringMVC3 在GAE 获取 Session

SpringMVC3 在GAE 获取 Session

时间:2011-04-10  来源:Herist

 


/**
     * returns the current http session object
     * 
     * @return session
     */
    @Override
    public HttpSession getSession() {        
        ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
        HttpSession contextSess = attr == null ? session : attr.getRequest().getSession(true);
        
        return contextSess; 
    }
相关阅读 更多 +
排行榜 更多 +
茶叶蛋大冒险免费版

茶叶蛋大冒险免费版

休闲益智 下载
全民帮帮她

全民帮帮她

休闲益智 下载
屋顶旅行

屋顶旅行

休闲益智 下载