![]() |
满身肌肉的熊猫 · 南阳12345:市委常委、市委秘书长李鹏现场 ...· 2 月前 · |
![]() |
道上混的椅子 · 半条命2:消失的海岸线全流程_哔哩哔哩_bi ...· 11 月前 · |
![]() |
豁达的铁链 · 雅昌专稿|对话永乐拍卖冯其果:专业是古董珍玩 ...· 1 年前 · |
我正在使用 spring-boot-admin 库。我在heroku中部署了一个spring boot管理客户端。客户端能够将其自身注册到管理服务器,并且还将managementUrl、healthUrl和serviceUrl发送回服务器。
问题是管理客户端的执行器端点在heroku中是不可访问的。admin-server抱怨
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无法访问并拒绝服务器发出的调用。
可以根据 documentation 配置管理url、服务url和健康url
因此更改了它们,以反映我的应用程序的公共heroku url,而不是自动生成的url(通过端口访问)。变了之后就像符咒一样工作。
Copyright © 2013 - 2023 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
扫码关注腾讯云开发者
领取腾讯云代金券
![]() |
道上混的椅子 · 半条命2:消失的海岸线全流程_哔哩哔哩_bilibili 11 月前 |