Skip to content

Commit b4ddacd

Browse files
committed
doc: 增加swagger2- openApi2注解变化
1 parent d98dd7e commit b4ddacd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,17 @@ matecloud -- 父项目,各模块分离,方便集成和微服务
198198

199199
- 🥥 [https://gitee.com/matevip/mate-demo](https://gitee.com/matevip/mate-demo)
200200

201+
## 🌭 Swagger2 - OpenAPI3
202+
| Swagger2 | OpenAPI3 | 注解位置 |
203+
| ---- | ---- |------------------------------|
204+
| `@Api` | @Tag(name = "接口类描述") | Controller 类上 |
205+
| `@ApiOperation` | @Operation(summary ="接口方法描述") | Controller 方法上 |
206+
| `@ApiImplicitParam` | @Parameter(description="参数描述") | Controller 方法上 @Parameters|
207+
| `@ApiImplicitParams` | @Parameters | Controller 方法上 |
208+
| `@ApiParam` | @Parameter(description="参数描述") | Controller 方法的参数上 |
209+
| `@ApiIgnore` | @Parameter(hidden = true) 或 @Operation(hidden = true) 或 @Hidden | ---- |
210+
| `@ApiModel` | @Schema | Entity类上 |
211+
| `@ApiModelProperty` | @Schema | Entity属性上 |
201212
## 🍻 贡献者名单
202213
欢迎提交[PR](https://gitee.com/matevip/matecloud/pulls)一起完善项目,以下为开源项目贡献的战友(排名不分先后):
203214

0 commit comments

Comments
 (0)