ylbtech-Java-API-Package:org.springframework.web.bind.annotation |
1.返回顶部 |
1、
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 HTTPDELETE
requests onto specific handler methods.ExceptionHandler Annotation for handling exceptions in specific handler classes and/or handler methods.GetMapping Annotation for mapping HTTPGET
requests onto specific handler methods.InitBinder Annotation that identifies methods which initialize theWebDataBinder
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 HTTPPATCH
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 HTTPPOST
requests onto specific handler methods.PutMapping Annotation for mapping HTTPPUT
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 statusResponseStatus.code()
andResponseStatus.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.返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |