需要从另一个VM访问API(https:// localhost:8080 / er / heartbeats)

问题描述 投票:0回答:1

我正在执行需要访问URL https://localhost:8080/er/heartbeat的任务,该URL从其他VM的heartbeat.xml提供了数据。

需要帮助。

java localhost virtual-machine
1个回答
0
投票

如果您在同一网络中,则只需要知道计算机的IP并按以下方式进行访问即可:

 https://other.machine.ip:8080/er/heartbeat
© www.soinside.com 2019 - 2024. All rights reserved.