【发布时间】:2018-10-24 13:57:25
【问题描述】:
一直在尝试设置引导管理服务器。连接到客户端实例失败
在IOException - An established connection was aborted by the software in your host machine 上,即使所有相关端点都可以访问(并且spring security 不在类路径中)
在服务器启动时我得到:
Couldn't retrieve status for Instance(id=91e01a92b3bf, version=0, registration=Registration(name=test, managementUrl=https://client-url:8080/actuator, healthUrl=https://client-url:8080/actuator/health, serviceUrl=https://client-url:8080/, source=discovery), registered=true, statusInfo=StatusInfo(status=UNKNOWN, details={}), statusTimestamp=2018-10-24T13:57:58.816657Z, info=Info(values={}), endpoints=Endpoints(endpoints={health=Endpoint(id=health, url=https://client-url:8080/actuator/health)}), buildVersion=null, tags=Tags(values={}))
管理 pom.xml
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-commons</artifactId>
<version>2.0.1.RELEASE</version>
</dependency>
Admin application.yml per admin docs
spring:
cloud:
discovery:
client:
simple:
instances:
test:
- uri: https://client-url:8080
metadata:
management.context-path: /actuator
客户端应用程序.yml
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
metrics:
enabled: true
管理服务器日志充满org.apache.coyote.CloseNowException: Connection [74], Stream [21], This stream is not writable 错误
【问题讨论】:
标签: spring spring-boot spring-cloud spring-boot-admin