【发布时间】:2016-12-22 14:41:05
【问题描述】:
即使使用 ignoreSSLIssues(),Spring Boot Actuator /health 端点也不可用,因为服务的路由已从 http 切换到 https。
我已经在其他 SSL 端点上成功使用了这种模式。为什么这个服务不可用。在浏览器中可以访问相同的 URL。
def url = "https://some.service.company.com"
def client = new HTTPBuilder(url)
client.ignoreSSLIssues()
def json = client.get(path: "/health")
println json
groovyx.net.http.HttpResponseException: 服务不可用
【问题讨论】:
-
看起来问题与 TLS 服务器名称识别 (SNI) 有关。不知道 Groovy HTTPBuilder 是否能正确处理这个问题?
标签: groovy spring-boot-actuator