程序包 org.springframework.web.context.annotation
Provides convenience annotations for web scopes.
注释类型概要 注释类型 说明 ApplicationScope @ApplicationScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web application.RequestScope @RequestScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web request.SessionScope @SessionScope
is a specialization of@Scope
for a component whose lifecycle is bound to the current web session.