Modern web frameworks have session and request scoped components and handle the dependency injection for them as those scopes come into life.
现代Web框架还有会话、请求等不同作用域范围的组件,框架会在进入作用域的时候相应地处理依赖注入。
The ODRs will route the incoming HTTP requests in an “application scoped” fashion to any target server capable of servicing the request.
ODR将以 “应用程序为作用域”把传入的HTTP请求路由到任何能够处理请求的目标服务器中。
A downside of the Open Session in View pattern is that the persistence-context object is effectively scoped to a user request.
OpenSessioninView模式的一个缺点是持久化上下文对象被高效地划定到用户请求作用域内。
Conversation-scoped beans are trickier, though, because they are associated with an HTTP request based on the presence of the conversation token.
conversation作用域内的bean需要更多技巧,因为它们基于对话令牌的存在而与HTTP请求相关联。
Conversation-scoped beans are trickier, though, because they are associated with an HTTP request based on the presence of the conversation token.
conversation作用域内的bean需要更多技巧,因为它们基于对话令牌的存在而与HTTP请求相关联。
应用推荐