# Package org.springframework.web.context.annotation

@NonNullApi @NonNullFields package org.springframework.web.context.annotation
Provides convenience annotations for web scopes.

Related Packages
Package
Description
org.springframework.web.context
Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.
org.springframework.web.context.request
Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.
org.springframework.web.context.support
Classes supporting the `org.springframework.web.context` package, such as WebApplicationContext implementations and various utility classes.
Annotation Interfaces
Class
Description
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.