| | |
| | | /* |
| | | package com.doumee.config.swagger; |
| | | |
| | | import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; |
| | |
| | | import springfox.documentation.builders.ParameterBuilder; |
| | | import springfox.documentation.service.Parameter; |
| | | import springfox.documentation.builders.PathSelectors; |
| | | import springfox.documentation.oas.annotations.EnableOpenApi; |
| | | //import springfox.documentation.oas.annotations.EnableOpenApi; |
| | | import springfox.documentation.schema.ModelRef; |
| | | import springfox.documentation.service.ApiInfo; |
| | | import springfox.documentation.spi.DocumentationType; |
| | |
| | | import java.util.List; |
| | | import java.util.function.Predicate; |
| | | |
| | | */ |
| | | /** |
| | | * Swagger配置 |
| | | * @author Eva.Caesar Liu |
| | | * @date 2022/03/11 10:24 |
| | | */ |
| | | *//* |
| | | |
| | | @Configuration |
| | | @EnableOpenApi |
| | | @EnableKnife4j |
| | |
| | | .paths(PathSelectors.any()) |
| | | .build(); |
| | | } |
| | | /** |
| | | */ |
| | | /** |
| | | * 重写basePackage方法,使能够实现多包访问,复制贴上去 |
| | | * @author teavamc |
| | | * @date 2019/1/26 |
| | | * @return com.google.common.base.Predicate<springfox.documentation.RequestHandler> |
| | | */ |
| | | *//* |
| | | |
| | | public static Predicate<RequestHandler> basePackage(String basePackage) { |
| | | return input -> declaringClass(input).transform(handlerPackage(basePackage)).or(true); |
| | | } |
| | |
| | | return Optional.fromNullable(input.declaringClass()); |
| | | } |
| | | } |
| | | */ |