Spring provides a stream scope, but it is not registered by default.
Existing bean areas are defined in the documentation here .
single point
- (default) Defines one bean definition for an instance of a single object in a Spring IoC container.
prototype
- bean HTTP-; HTTP- bean, bean. - Spring
ApplicationContext.
- bean HTTP. - Spring ApplicationContext.
- bean
ServletContext. - Spring ApplicationContext.
WebSocket
- bean
WebSocket. - Spring ApplicationContext.
Spring 3.0, , . . SimpleThreadScope.
, , ,
[SimpleThreadScope] .
ThreadLocal beans.
/dying Thread Java, IOC Spring , beans ThreadLocal . .
, . , , bean . .