Java-API-Package:org.springframework.web.bind.annotation

时间:2022-09-08 20:01:05
ylbtech-Java-API-Package:org.springframework.web.bind.annotation

 

1.返回顶部
1、

@NonNullApi @NonNullFields

Package org.springframework.web.bind.annotation

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

See: Description

  • Interface Summary
    Interface Description
    ValueConstants
    Common value constants shared between bind annotations.
  • Enum Summary
    Enum Description
    RequestMethod
    Java 5 enumeration of HTTP request methods.
  • Annotation Types Summary
    Annotation Type Description
    ControllerAdvice
    Specialization of  @Component for classes that declare  @ExceptionHandler@InitBinder, or  @ModelAttribute methods to be shared across multiple  @Controller classes.
    CookieValue
    Annotation which indicates that a method parameter should be bound to an HTTP cookie.
    CrossOrigin
    Annotation for permitting cross-origin requests on specific handler classes and/or handler methods.
    DeleteMapping
    Annotation for mapping HTTP  DELETE requests onto specific handler methods.
    ExceptionHandler
    Annotation for handling exceptions in specific handler classes and/or handler methods.
    GetMapping
    Annotation for mapping HTTP  GET requests onto specific handler methods.
    InitBinder
    Annotation that identifies methods which initialize the  WebDataBinder which will be used for populating command and form object arguments of annotated handler methods.
    Mapping
    Meta annotation that indicates a web mapping annotation.
    MatrixVariable
    Annotation which indicates that a method parameter should be bound to a name-value pair within a path segment.
    ModelAttribute
    Annotation that binds a method parameter or method return value to a named model attribute, exposed to a web view.
    PatchMapping
    Annotation for mapping HTTP  PATCH requests onto specific handler methods.
    PathVariable
    Annotation which indicates that a method parameter should be bound to a URI template variable.
    PostMapping
    Annotation for mapping HTTP  POST requests onto specific handler methods.
    PutMapping
    Annotation for mapping HTTP  PUT requests onto specific handler methods.
    RequestAttribute
    Annotation to bind a method parameter to a request attribute.
    RequestBody
    Annotation indicating a method parameter should be bound to the body of the web request.
    RequestHeader
    Annotation which indicates that a method parameter should be bound to a web request header.
    RequestMapping
    Annotation for mapping web requests onto methods in request-handling classes with flexible method signatures.
    RequestParam
    Annotation which indicates that a method parameter should be bound to a web request parameter.
    RequestPart
    Annotation that can be used to associate the part of a "multipart/form-data" request with a method argument.
    ResponseBody
    Annotation that indicates a method return value should be bound to the web response body.
    ResponseStatus
    Marks a method or exception class with the status  ResponseStatus.code() and  ResponseStatus.reason() that should be returned.
    RestController
    A convenience annotation that is itself annotated with @Controller and @ResponseBody.
    RestControllerAdvice
    A convenience annotation that is itself annotated with  @ControllerAdvice and  @ResponseBody.
    SessionAttribute
    Annotation to bind a method parameter to a session attribute.
    SessionAttributes
    Annotation that indicates the session attributes that a specific handler uses.

Package org.springframework.web.bind.annotation Description

Annotations for binding requests to controllers and handler methods as well as for binding request parameters to method arguments.
2、
2. 返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
0、
1、
 
6.返回顶部
 
Java-API-Package:org.springframework.web.bind.annotation 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。