Spring框架中session和globalSession有什么区别?Spring bean scopes:session和globalSession
<bean id="exampleBean" class="com.test.baen.ExampleBean" scope="session"/>
<bean id="exampleBean" class="com.test.baen.ExampleBean" scope="globalSession"/>
根据我的研究,两种方法都可以在web-aware Spring ApplicationContext的上下文中使用。
现在,会话Bean范围将保留到用户会话,但globalSession bean范围将在整个应用程序中是否可用?
它是应用范围吗?
我无法理解术语“全局HTTP会话”;它会在整个全球HTTP会话中使用吗?
谢谢你澄清它。为你+1。 – 2013-10-08 14:44:19