How to avoid a NoRouteToHostException?

后端 未结 6 1871
傲寒
傲寒 2020-12-02 06:09

Disclosure: the code I\'m working on is for university coursework.

Background: The task I\'m trying to complete is to report on the effect of different threading tec

6条回答
  •  Happy的楠姐
    2020-12-02 06:15

    For any other Java users that stumble across this question, I would recommend using connection pooling so connections are reused properly.

提交回复
热议问题