类的使用
org.springframework.context.annotation.Scope
使用Scope的程序包 程序包 说明 org.springframework.web.context.annotation Provides convenience annotations for web scopes.org.springframework.web.context.annotation中Scope的使用
注释类型为Scope的org.springframework.web.context.annotation中的类 修饰符和类型 类 说明 interfaceApplicationScope@ApplicationScopeis a specialization of@Scopefor a component whose lifecycle is bound to the current web application.interfaceRequestScope@RequestScopeis a specialization of@Scopefor a component whose lifecycle is bound to the current web request.interfaceSessionScope@SessionScopeis a specialization of@Scopefor a component whose lifecycle is bound to the current web session.