如何在intellij spring boot应用程序中使用ssh隧道

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

我想将第三方 API 集成到我的 Spring Boot 应用程序中。但第三方 API 仅在某些从第三方启用 IP 的环境中工作。

我可以使用邮递员使用下面提到的方式运行这些 API: https://medium.com/teamarimac/access-a-server-through-ssh-tunnel-and-send-api-requests-through-postman-in-windows-10-b7307974c1a0

需要知道如何使用来自 intellij 的 ssh 隧道在本地运行它来集成和测试。

尝试了各种方法都没有找到解决办法

spring-boot api intellij-idea ssh-tunnel
1个回答
0
投票

如果您的应用程序位于本地主机中并且您需要公开提供它。您可以使用

ngrok
进行隧道挖掘。

要配置它,您可以访问https://ngrok.com/docs/getting-started/

© www.soinside.com 2019 - 2024. All rights reserved.