wuhongshuang 3 년 전
부모
커밋
9e35fdecdb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -12,7 +12,8 @@ http://112.74.63.148:49001/
 使用参考 https://baomidou.com/pages/24112f/
 
 ## swwager2 生成接口文档
-在controller 的接口方法上加上 @ApiOperation(value = "xxx") 即可。
+在controller 加上@Api(value = "/test", tags = {"controller描述"})
+接口方法上加上 @ApiOperation(value = "接口描述") 即可。
 文档地址:http://127.0.0.1:端口/doc.html
 
 ## 接口返回