首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Struts2 & Servlet 线程,生命周期小懂得

2012-07-01 
Struts2 & Servlet 线程,生命周期小理解?????????????????????????????????????????? Servlet????????????

Struts2 & Servlet 线程,生命周期小理解

?????????????????????????????????????????? Servlet?????????????????????????????????????????????????????? Struts2

??????????????????? init????????????????? when the request arrive???????????????????? when the request arrive

lifecycle??????? service??????????? exist in container??????????????????????????????? exist in container??

??????????????????? destroy?????????? by container??????????????????????????????????????? request thread destroy

?

?

thread???????????????????????????????? exist in container all request?????????????? ActionContext is thread local

??????????????????????????????????????????? share the same servlet ,???????????????????? each thread have a ActionContext

??????????????????????????????????????????? thread-unsafe????????????????????????????????? ? thread-safe

热点排行