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

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
    InterfaceDescription
    ValueConstants
    Common value constants shared between bind annotations.
  • Enum Summary
    EnumDescription
    RequestMethod
    Java 5 enumeration of HTTP request methods.
  • Annotation Types Summary
    Annotation TypeDescription
    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.返回顶部
 
warn作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

转载于:https://www.cnblogs.com/storebook/p/10577895.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
// IntelliJ API Decompiler stub source generated from a class file // Implementation of methods is not available package com.system.controller; @org.springframework.stereotype.Controller @org.springframework.web.bind.annotation.RequestMapping({"/admin"}) public class AdminController { @javax.annotation.Resource(name = "studentServiceImpl") private com.system.service.StudentService studentService; @javax.annotation.Resource(name = "teacherServiceImpl") private com.system.service.TeacherService teacherService; @javax.annotation.Resource(name = "courseServiceImpl") private com.system.service.CourseService courseService; @javax.annotation.Resource(name = "collegeServiceImpl") private com.system.service.CollegeService collegeService; @javax.annotation.Resource(name = "userloginServiceImpl") private com.system.service.UserloginService userloginService; public AdminController() { /* compiled code */ } @org.springframework.web.bind.annotation.RequestMapping({"/showStudent"}) public java.lang.String showStudent(org.springframework.ui.Model model, java.lang.Integer page) throws java.lang.Exception { /* compiled code */ } @org.springframework.web.bind.annotation.RequestMapping(value = {"/addStudent"}, method = {org.springframework.web.bind.annotation.RequestMethod.GET}) public java.lang.String addStudentUI(org.springframework.ui.Model model) throws java.lang.Exception { /* compiled code */ } @org.springframework.web.bind.annotation.RequestMapping(value = {"/addStudent"}, method = {org.springframework.web.bind.annotation.RequestMethod.POST}) public java.lang.String addStudent(com.system.po.StudentCustom studentCustom, org.springframework.ui.Model model) throws java.lang.Exception { /* compiled code */ } @org.springframework.web.bind.annotation.RequestMapping(value = {"/editStudent"}, method = {org.springframework.web.bind.annotation.RequestMethod.GET}) public java.lang.String editStudentUI(java.lang.Integer id, org.springframework.ui.Model
06-10

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值