转:http://blog.csdn.net/fansunion/article/details/51923720

写的非常好,非常详细,推荐!!!!

 

最常用的5个注解

@Api:修饰整个类,描述Controller的作用

@ApiOperation:描述一个类的一个方法,或者说一个接口

@ApiParam:单个参数描述

 

@ApiModel:用对象来接收参数

@ApiProperty:用对象接收参数时,描述对象的一个字段

@ApiResponse:HTTP响应其中1个描述

@ApiResponses:HTTP响应整体描述

 

@ApiClass

@ApiError

@ApiErrors

 

 

 

@ApiParamImplicit

@ApiParamsImplicit

相关文章:

  • 2021-04-16
  • 2022-12-23
  • 2021-10-31
  • 2021-03-29
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2021-09-09
  • 2021-12-09
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案