Swagger (three) Notes commonly Swagger

  1. @Api: used in the requested class represents the class description
    tags = "class effect explanatory notes, can be seen on the UI screen"
    Description = "Description"
    , such as:
@Api(tags = "第一个Controller层",description = "用来测试数据")

2. @ ApiOperation: The method used in the request that the use of the process, the role of
value = "Use of the method described, the role of"
Notes = "Method Remarks"

@ApiOperation(value = "Hello",notes = "返回一个hello")

3. @ ApiModel: in response to the class information indicating a returned response data

  @ApiModel("用于封装后台放回结果,规定一个数据结构")
Published 45 original articles · won praise 7 · views 922

Guess you like

Origin blog.csdn.net/qq_42222342/article/details/103838869