类 OpenAPI2Resource

java.lang.Object
com.github.xiaoymin.knife4j.spring.gateway.spec.AbstractOpenAPIResource
com.github.xiaoymin.knife4j.spring.gateway.spec.v2.OpenAPI2Resource
所有已实现的接口:
Serializable, Comparable<AbstractOpenAPIResource>

public class OpenAPI2Resource extends AbstractOpenAPIResource
从以下版本开始:
gateway-spring-boot-starter v4.1.0
作者:
milo.xiaomeng@gmail.com 23/02/26 20:43
另请参阅:
  • 构造器详细资料

    • OpenAPI2Resource

      public OpenAPI2Resource(Integer order, Boolean discovered)
    • OpenAPI2Resource

      public OpenAPI2Resource(Knife4jGatewayProperties.Router router)
      基于Router配置对象构建接口Resource
      参数:
      router - Config配置对象
      从以下版本开始:
      v4.2.0
    • OpenAPI2Resource

      public OpenAPI2Resource(String url, int order, boolean discover, String groupName, String contextPath)
      基于参数配置构建Resource对象
      参数:
      url - 分组url
      order - 排序
      discover - 是否服务发现
      groupName - 名称
      contextPath - 当前contextPath
      从以下版本开始:
      v4.2.0
    • OpenAPI2Resource

      public OpenAPI2Resource(String url, int order, boolean discover, String groupName, String contextPath, String serviceName)
      增加服务名称
      参数:
      url - 分组url
      order - 排序
      discover - 是否服务发现
      groupName - 名称
      contextPath - 当前contextPath
      serviceName - 服务名称
      从以下版本开始:
      v4.3.0
  • 方法详细资料