本文整理了Java中org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties.getPathMapping()
方法的一些代码示例,展示了WebEndpointProperties.getPathMapping()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebEndpointProperties.getPathMapping()
方法的具体详情如下:
包路径:org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties
类名称:WebEndpointProperties
方法名:getPathMapping
暂无
代码示例来源:origin: org.springframework.boot/spring-boot-actuator-autoconfigure
@Bean
public PathMapper webEndpointPathMapper() {
return new MappingWebEndpointPathMapper(this.properties.getPathMapping());
}
代码示例来源:origin: io.hawt/hawtio-springboot
public String resolve(final String endpointName) {
final Map<String, String> pathMapping = webEndpointProperties.getPathMapping();
final String basePath = webEndpointProperties.getBasePath();
final String servletPath = dispatcherServletPath.getPath();
String endpointPathMapping = pathMapping.get(endpointName);
if (endpointPathMapping == null) {
endpointPathMapping = endpointName;
}
final String webContextPath = Strings.webContextPath(servletPath, basePath, endpointPathMapping);
return webContextPath.isEmpty() ? "/" : webContextPath;
}
内容来源于网络,如有侵权,请联系作者删除!