Skip to content

Commit

Permalink
更新配置swagger相关文档
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryMa1024 committed Oct 15, 2020
1 parent 07b4e98 commit 7318fdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions diboot-docs/guide/notes/faq/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ public class SwaggerConfig {
.apiInfo(apiInfo()).enable(true)
.select()
// 添加swagger接口范围
.apis(RequestHandlerSelectors.basePackage("com.example"))
//.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.build();
}

Expand Down

0 comments on commit 7318fdf

Please sign in to comment.