类 RelativePathProvider

java.lang.Object
springfox.documentation.spring.web.paths.AbstractPathProvider
springfox.documentation.spring.web.paths.RelativePathProvider
所有已实现的接口:
springfox.documentation.PathProvider

public class RelativePathProvider extends AbstractPathProvider
  • 字段详细资料

  • 构造器详细资料

    • RelativePathProvider

      public RelativePathProvider(jakarta.servlet.ServletContext servletContext)
  • 方法详细资料

    • applicationPath

      protected String applicationPath()
      从类复制的说明: AbstractPathProvider
      For relative PathProviders this is typically '/' meaning relative to the swagger ui page serving the documentation. The swagger specification recommends that this should be an absolute URL. Corresponds to the base path attribute of a swagger api declaration. This is the actual base path serving the api (not the swagger documentation)
      指定者:
      applicationPath 在类中 AbstractPathProvider
      返回:
      the applications base uri
    • getDocumentationPath

      protected String getDocumentationPath()
      从类复制的说明: AbstractPathProvider
      The base path to the swagger api documentation. Typically docs are served from <yourApp>/api-docs so a relative resourceListing path will omit the api-docs segment. E.g. Relative: "path": "/" Absolute: "path": "http://localhost:8080/api-docs"
      指定者:
      getDocumentationPath 在类中 AbstractPathProvider
      返回:
      the documentation base path