Address family not supported by protocol family: connect 解决方案

在springboot 使用okhttp请求其他服务的接口时,出现了Address family not supported by protocol family: connect这个异常, 后来把这一块代码单独拎出去运行,是没有任何问题的。 后来在StackOverflow上找到了一个可用的解决方案,具体为什么只在springboot环境下出现异常暂时还不太清楚。 解决方法 VM options
相关文章
相关标签/搜索