类 DefaultGatewayServiceExcludeService

java.lang.Object
com.github.xiaoymin.knife4j.spring.gateway.discover.spi.impl.DefaultGatewayServiceExcludeService
所有已实现的接口:
GatewayServiceExcludeService

public class DefaultGatewayServiceExcludeService extends Object implements GatewayServiceExcludeService
默认排除规则
从以下版本开始:
knife4j v4.2.0
作者:
xiaoymin@foxmail.com 2023/7/8 12:58
  • 构造器详细资料

    • DefaultGatewayServiceExcludeService

      public DefaultGatewayServiceExcludeService()
  • 方法详细资料

    • exclude

      public Set<String> exclude(org.springframework.core.env.Environment environment, Knife4jGatewayProperties gatewayProperties, List<String> services)
      从接口复制的说明: GatewayServiceExcludeService
      获取要排除的服务列表
      指定者:
      exclude 在接口中 GatewayServiceExcludeService
      参数:
      environment - 当前环境变量
      gatewayProperties - Knife4j网关聚合配置信息
      services - 微服务注册中心中所有子服务
      返回:
      需要排除的子服务列表,不参加网关Swagger文档聚合