类 RequestHandlerSelectorUtils
java.lang.Object
com.github.xiaoymin.knife4j.spring.util.RequestHandlerSelectorUtils
针对多个包路径的情况提供Api的扫描
- 从以下版本开始:
- 1.0
- 作者:
- xiaoymin@foxmail.com 2021/03/02 15:39
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Predicate<springfox.documentation.RequestHandler>basePackage(String basePackage) Predicate that matches RequestHandler with given base package name for the class of the handler method.static voidstatic Predicate<springfox.documentation.RequestHandler>multipleAnnotations(List<String> annotations) 基于注解multipleAntPath(List<String> antPaths) Ant风格static Predicate<springfox.documentation.RequestHandler>multiplePackage(String... basePackages) match multipart packages requestHandlermultiplePathSelector(List<String> rules) math multiple path selector,seePathSelectorsmultipleRegexPath(List<String> regex) 正则表达式
-
构造器详细资料
-
RequestHandlerSelectorUtils
public RequestHandlerSelectorUtils()
-
-
方法详细资料
-
basePackage
Predicate that matches RequestHandler with given base package name for the class of the handler method. This predicate includes all request handlers matching the provided basePackage- 参数:
basePackage- - base package of the classes- 返回:
- this
-
multiplePathSelector
math multiple path selector,seePathSelectors- 参数:
rules- path rules- 返回:
-
multiplePackage
public static Predicate<springfox.documentation.RequestHandler> multiplePackage(String... basePackages) match multipart packages requestHandler- 参数:
basePackages- basePackages 多个包路径- 返回:
- this
- 从以下版本开始:
- 4.0
-
multipleAntPath
Ant风格- 参数:
antPaths- ant路径- 返回:
- 从以下版本开始:
- 4.0
-
multipleRegexPath
正则表达式- 参数:
regex- 正则- 返回:
- 从以下版本开始:
- 4.0
-
multipleAnnotations
public static Predicate<springfox.documentation.RequestHandler> multipleAnnotations(List<String> annotations) 基于注解- 参数:
annotations- 注解类- 返回:
- 从以下版本开始:
- 4.0
-
main
-