首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Spring boot管理服务器无法访问部署在heroku中的实例

Spring boot管理服务器无法访问部署在heroku中的实例
EN

Stack Overflow用户
提问于 2020-01-08 21:34:42
回答 1查看 529关注 0票数 0

我正在使用spring-boot-admin库。我在heroku中部署了一个spring boot管理客户端。客户端能够将其自身注册到管理服务器,并且还将managementUrl、healthUrl和serviceUrl发送回服务器。

问题是管理客户端的执行器端点在heroku中是不可访问的。admin-server抱怨

代码语言:javascript
复制
 Couldn't retrieve status for Instance(id=156385483, version=0, registration=Registration(name=spring-boot-application, managementUrl=http://example.heroku.com:23349/actuator, healthUrl=http://example.com:23349/actuator/health, serviceUrl=http://example,heroku.com:23349/, source=http-api), registered=true, statusInfo=StatusInfo(status=UNKNOWN, details={}), statusTimestamp=2020-01-08T13:13:32.710Z, info=Info(values={}), endpoints=Endpoints(endpoints={health=Endpoint(id=health, url=http://example.heroku.com:23349/actuator/health)}), buildVersion=null, tags=Tags(values={}))

当在本地机器上运行时,管理服务器和客户端工作正常。这可能是heroku的端口问题吗?heroku无法访问并拒绝服务器发出的调用。

EN

回答 1

Stack Overflow用户

发布于 2020-01-09 19:43:00

可以根据documentation配置管理url、服务url和健康url

因此更改了它们,以反映我的应用程序的公共heroku url,而不是自动生成的url(通过端口访问)。变了之后就像符咒一样工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59647053

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档