SFTP上传,去掉关闭
This commit is contained in:
parent
7b9def71fc
commit
e5141ff6d8
|
@ -85,8 +85,8 @@ public class FileHandleUtil {
|
|||
}
|
||||
map.put("data",uploadMap.get("data"));
|
||||
}
|
||||
SFTPUtil.disChannel();
|
||||
SFTPUtil.disSession();
|
||||
// SFTPUtil.disChannel();
|
||||
// SFTPUtil.disSession();
|
||||
return map;
|
||||
}
|
||||
|
||||
|
@ -102,8 +102,8 @@ public class FileHandleUtil {
|
|||
|
||||
public Map<String,String> download(String directory, String downloadFile){
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,directory,downloadFile,getDownloadPath("temp"));
|
||||
SFTPUtil.disChannel();
|
||||
SFTPUtil.disSession();
|
||||
// SFTPUtil.disChannel();
|
||||
// SFTPUtil.disSession();
|
||||
return map;
|
||||
}
|
||||
|
||||
|
@ -172,8 +172,8 @@ public class FileHandleUtil {
|
|||
}
|
||||
map.put("pdfData",uploadMap.get("data"));
|
||||
}
|
||||
SFTPUtil.disChannel();
|
||||
SFTPUtil.disSession();
|
||||
// SFTPUtil.disChannel();
|
||||
// SFTPUtil.disSession();
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue