我已经实现了 Cloud Config Server,并且(最终)工作正常,并向客户端提供配置。我正在使用 3.0.1 版的 Config Server(我不得不升级,因为 3.0.0 中有一些错误)。
但我的最后一步,提供健康是行不通的。
在每个项目的执行器/健康中,它总是报告:
"clientConfigServer": {
"status": "UNKNOWN",
"details": {
"error": "no property sources located"
}
},
我在 bootstrap.yml 和 application.yml 中都添加了 enabled: true
# Development only: Adjust or remove in production management:
endpoint.health.show-details: "ALWAYS"
endpoints.web.exposure.include: "*"
health:
circuitbreakers.enabled: true
ratelimiters.enabled: true
config.enabled: true
health.config.enabled: true
注意:配置服务器在 3.0.1 中,但客户端在 3.0.0 中。由于依赖关系,我无法升级客户端。欢迎任何建议或线索!