| | |
| | | |
| | | import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeansException; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.beans.factory.config.BeanPostProcessor; |
| | |
| | | .select() |
| | | //apis: 添加swagger接口提取范围 |
| | | .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) |
| | | // .apis(RequestHandlerSelectors.basePackage("com.vincent.rsf.server.manager.controller")) |
| | | .paths(PathSelectors.any()) |
| | | .build(); |
| | | |
| | |
| | | .enable("dev".equals(active)) |
| | | .groupName("ERP接口对接") |
| | | .select() |
| | | //apis: 添加swagger接口提取范围 |
| | | .apis(RequestHandlerSelectors.basePackage("com.vincent.rsf.server.api.controller.erp")) |
| | | .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) |
| | | .paths(PathSelectors.any()) |
| | | .build(); |
| | | |
| | | return docket; |
| | | } |
| | | |
| | | |
| | | private ApiInfo apiInfo() { |
| | | return new ApiInfoBuilder() |