Commit 7069ce4765961abfb1608220fbf90b489e4e949f
1 parent
5798085c
添加文档生成
Showing
1 changed file
with
2 additions
and
2 deletions
Bsth-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java
| ... | ... | @@ -59,9 +59,9 @@ public class SwaggerConfig |
| 59 | 59 | // 设置哪些接口暴露给Swagger展示 |
| 60 | 60 | .select() |
| 61 | 61 | // 扫描所有有注解的api,用这种方式更灵活 |
| 62 | - // .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) | |
| 62 | + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) | |
| 63 | 63 | // 扫描指定包中的swagger注解 |
| 64 | - .apis(RequestHandlerSelectors.basePackage("com.ruoyi")) | |
| 64 | + //.apis(RequestHandlerSelectors.basePackage("com.ruoyi")) | |
| 65 | 65 | // 扫描所有 |
| 66 | 66 | .apis(RequestHandlerSelectors.any()) |
| 67 | 67 | .paths(PathSelectors.any()) | ... | ... |