类的使用
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中的类 修饰符和类型 类 说明 interface
ApplicationScope
@ApplicationScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web application.interface
RequestScope
@RequestScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web request.interface
SessionScope
@SessionScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web session.