首页 > 解决方案 > Spring Boot 应用程序无法通过 VPN 连接到服务器

问题描述

我有一个通过 vpn 连接到服务器的 spring boot 应用程序。它在 Windows 上运行良好,但是当部署在 linux 服务器上时它会抛出

org.springframework.ws.client.WebServiceIOException: I/O error: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:561) ~[spring-ws-core-3.0.6.RELEASE.jar:na]

Linux操作系统是Centos。Windows 上使用的 vpn 客户端是 AnyConnect,而 Linux 客户端是 OpenConnect。关于如何解决这个问题的任何想法?

标签: javaspring-bootcentos7vpnopenconnect

解决方案


推荐阅读