开发者

how many times struts 2 action class will initialized?

My question is that, how many time action class will in开发者_运维问答itialized in struts 2? I mean that Servlet will initialized only first time and after that on every request new thread will be allocated for new request. Struts 2 action works same like servlet or it will initialized on every new request?


A new action is created on every new request. If the action has an Action Class then a new instance will be created during that request.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜