您的位置:首页 > 运维架构

CPU 频率调节和硬盘温度监控[zt]

2008-03-16 12:06 357 查看
request.getSession()、request.getSession(false)和request.getSession(true)的区别:

在J2EE的API文档中关于HttpSession getSession(boolean create)的说明是:
Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.
而对于HttpSession getSession()的说明是:
Returns the current session associated with this request, or if the request does not have a session, creates one.

由此可见:request.getSession()和request.getSession(true)是等价的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: