接口 PathMappedEndpoint

所有已知子接口:
ExposableControllerEndpoint, ExposableServletEndpoint, ExposableWebEndpoint
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface PathMappedEndpoint
Interface that can be implemented by an ExposableEndpoint that is mapped to a root web path.
从以下版本开始:
2.0.0
作者:
Phillip Webb
另请参阅:
  • 方法详细资料

    • getRootPath

      String getRootPath()
      Return the root path of the endpoint (relative to the context and base path) that exposes it. For example, a root path of example would be exposed under the URL "/{actuator-context}/example".
      返回:
      the root path for the endpoint
      另请参阅:
    • getAdditionalPaths

      default List<String> getAdditionalPaths(WebServerNamespace webServerNamespace)
      Return any additional paths (relative to the context) for the given WebServerNamespace.
      参数:
      webServerNamespace - the web server namespace
      返回:
      a list of additional paths
      从以下版本开始:
      3.4.0