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,9 +59,9 @@ public class SwaggerConfig | ||
| 59 | // 设置哪些接口暴露给Swagger展示 | 59 | // 设置哪些接口暴露给Swagger展示 |
| 60 | .select() | 60 | .select() |
| 61 | // 扫描所有有注解的api,用这种方式更灵活 | 61 | // 扫描所有有注解的api,用这种方式更灵活 |
| 62 | - // .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) | 62 | + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) |
| 63 | // 扫描指定包中的swagger注解 | 63 | // 扫描指定包中的swagger注解 |
| 64 | - .apis(RequestHandlerSelectors.basePackage("com.ruoyi")) | 64 | + //.apis(RequestHandlerSelectors.basePackage("com.ruoyi")) |
| 65 | // 扫描所有 | 65 | // 扫描所有 |
| 66 | .apis(RequestHandlerSelectors.any()) | 66 | .apis(RequestHandlerSelectors.any()) |
| 67 | .paths(PathSelectors.any()) | 67 | .paths(PathSelectors.any()) |