SpringMVC3 在GAE 获取 Session
摘要:
/***returnsthecurrenthttpsessionobject**@returnsession*/@OverridepublicHttpSessiongetSession(){ServletRequestAttributesattr=(ServletRequestAttributes)RequestContextHolder.currentRequestAttributes();HttpSessioncontextSess=attr==null?session:attr.getRequest().getSession(true);returncontextSess;} 阅读全文
posted @ 2011-04-10 16:23 Herist 阅读(1744) 评论(0) 推荐(0) 编辑