|  |  | 
 |  |  | import springfox.documentation.spring.web.plugins.Docket; | 
 |  |  | import springfox.documentation.spring.web.plugins.WebFluxRequestHandlerProvider; | 
 |  |  | import springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider; | 
 |  |  |  | 
 |  |  | import java.lang.reflect.Field; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.stream.Collectors; | 
 |  |  | 
 |  |  |     public Docket docket() { | 
 |  |  |         Docket docket = new Docket(DocumentationType.OAS_30) | 
 |  |  |                 .apiInfo(apiInfo()) | 
 |  |  |                 .enable("dev".equals(active)) | 
 |  |  |                 .groupName("测试分组") | 
 |  |  |                 .enable(true) | 
 |  |  |                 .select() | 
 |  |  |                 //apis: 添加swagger接口提取范围 | 
 |  |  |                 .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) | 
 |  |  | 
 |  |  |         return docket; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Bean | 
 |  |  |     public Docket erpDocket() { | 
 |  |  |         Docket docket = new Docket(DocumentationType.OAS_30) | 
 |  |  |                 .apiInfo(apiInfo()) | 
 |  |  |                 .enable("dev".equals(active)) | 
 |  |  |                 .groupName("ERP接口对接") | 
 |  |  |                 .select() | 
 |  |  |                 .apis(RequestHandlerSelectors.basePackage("com.vincent.rsf.server.api.controller.erp")) | 
 |  |  |                 .paths(PathSelectors.any()) | 
 |  |  |                 .build(); | 
 |  |  |  | 
 |  |  |         return docket; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     private ApiInfo apiInfo() { | 
 |  |  |         return new ApiInfoBuilder() | 
 |  |  |                 .title("WMS标版1.0版本接口文档") |