[Java download SFTP file server file interruption exception handling]

First look at the error report:

Insert image description here
Solution:
Because there is a problem with the download terminal socket link, an exception will be reported when sending the request again. Here I separate the sftp connection operation and log in again every time I access sftp to solve this problem.

Guess you like

Origin blog.csdn.net/qq_42071369/article/details/130388688