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

在springboot 使用okhttp請求其他服務的接口時,出現了Address family not supported by protocol family: connect這個異常, 後來把這一塊代碼單獨拎出去運行,是沒有任何問題的。 後來在StackOverflow上找到了一個可用的解決方案,具體爲什麼只在springboot環境下出現異常暫時還不太清楚。 解決方法 VM options
相關文章
相關標籤/搜索