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.