Spring 3.5 Session Bean Lifecycle

吃可爱长大的小学妹 提交于 2019-12-24 00:00:25

问题


What triggers Spring's Session Bean to exist in the container, and what removes it? Basically, I want to understand the web flow's effect on Session Bean.


回答1:


Session bean is created when you try to access it from view for the first time or you want to access a bean that depends on it. It is stored in HTTP session so it is removed when session expires or is explicitly destroyed - this part is managed by a servlet container rather than spring.



来源:https://stackoverflow.com/questions/5527957/spring-3-5-session-bean-lifecycle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!