Spring 3.5 Session Bean生命周期 [英] Spring 3.5 Session Bean Lifecycle

查看:62
本文介绍了Spring 3.5 Session Bean生命周期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么触发了Spring的Session Bean存在于容器中,什么将其删除?基本上,我想了解Web流对Session Bean的影响.

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.

推荐答案

会话bean是在您首次尝试从视图访问它或想要访问依赖于它的bean时创建的.它存储在HTTP会话中,因此当会话过期或被明确破坏时将其删除-这部分是由servlet容器而不是spring管理的.

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.

这篇关于Spring 3.5 Session Bean生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆