Top Description Interfaces Annotations Classes Enums
module spring.web

Package org.springframework.web.bind.annotation

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Annotations for binding requests to controllers and handler methods as well as for binding request parameters to method arguments.

Interface Summary

Modifier and TypeInterface and Description
public interface
ValueConstants

Common value constants shared between bind annotations.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
BindParam

Annotation to bind values from a web request such as request parameters or path variables to fields of a Java object.

public @interface
ControllerAdvice

Specialization of @Component for classes that declare @ExceptionHandler, @InitBinder, or @ModelAttribute methods to be shared across multiple @Controller classes.

public @interface
CookieValue

Annotation to indicate that a method parameter is bound to an HTTP cookie.

public @interface
CrossOrigin

Annotation for permitting cross-origin requests on specific handler classes and/or handler methods.

public @interface
DeleteMapping

Annotation for mapping HTTP DELETE requests onto specific handler methods.

public @interface
ExceptionHandler

Annotation for handling exceptions in specific handler classes and/or handler methods.

public @interface
GetMapping

Annotation for mapping HTTP GET requests onto specific handler methods.

public @interface
InitBinder

Annotation that identifies methods that initialize the org.springframework.web.bind.WebDataBinder which will be used for populating command and form object arguments of annotated handler methods.

public @interface
Mapping

Meta annotation that indicates a web mapping annotation.

public @interface
MatrixVariable

Annotation which indicates that a method parameter should be bound to a name-value pair within a path segment.

public @interface
ModelAttribute

Annotation that binds a method parameter or method return value to a named model attribute, exposed to a web view.

public @interface
PatchMapping

Annotation for mapping HTTP PATCH requests onto specific handler methods.

public @interface
PathVariable

Annotation which indicates that a method parameter should be bound to a URI template variable.

public @interface
PostMapping

Annotation for mapping HTTP POST requests onto specific handler methods.

public @interface
PutMapping

Annotation for mapping HTTP PUT requests onto specific handler methods.

public @interface
RequestAttribute

Annotation to bind a method parameter to a request attribute.

public @interface
RequestBody

Annotation indicating a method parameter should be bound to the body of the web request.

public @interface
RequestHeader

Annotation which indicates that a method parameter should be bound to a web request header.

public @interface
RequestMapping

Annotation for mapping web requests onto methods in request-handling classes with flexible method signatures.

public @interface
RequestParam

Annotation which indicates that a method parameter should be bound to a web request parameter.

public @interface
RequestPart

Annotation that can be used to associate the part of a "multipart/form-data" request with a method argument.

public @interface
ResponseBody

Annotation that indicates a method return value should be bound to the web response body.

public @interface
ResponseStatus

Marks a method or exception class with the status code and reason that should be returned.

public @interface
RestController

A convenience annotation that is itself annotated with @Controller and @ResponseBody.

public @interface
RestControllerAdvice

A convenience annotation that is itself annotated with @ControllerAdvice and @ResponseBody.

public @interface
SessionAttribute

Annotation to bind a method parameter to a session attribute.

public @interface
SessionAttributes

Annotation that indicates the session attributes that a specific handler uses.

Class Summary

Modifier and TypeClass and Description
pack-priv class
ControllerMappingReflectiveProcessor

ReflectiveProcessor implementation for Controller and controller-specific annotated methods.

pack-priv class

Enum Summary

Modifier and TypeEnum and Description
public enum
RequestMethod

Enumeration of HTTP request methods.