简体   繁体   English

Spring Boot:Spring Boot中的sFtp客户端

[英]Spring boot: sFtp client inside spring-boot

I've created a spring-boot service. 我已经创建了一个春季启动服务。

I need to connect to an sFTP server in order to download remote files from server and process them locally (on spring-boot service) and asynchronously. 我需要连接到sFTP服务器,以便从服务器下载远程文件并在本地(在spring-boot服务上)异步处理它们。

I've been google over there, but I don't quite find how to solve that. 我去过那儿的google,但是我还不太想如何解决这个问题。 I mean, which libraries should I use... 我的意思是,我应该使用哪些库...

Any ideas? 有任何想法吗?

It's not a good practise to exchange files with remote server using java ( except for common protocols like HTTP ) .. You should call a wrapper shell script from Java application .. and you call the sftp/ftps command from the script 用Java与远程服务器交换文件不是一个好习惯(除了HTTP之类的常见协议)..您应该从Java应用程序中调用包装外壳脚本..,然后从脚本中调用sftp / ftps命令

The main reason in to use system infrastrcutre ( with up to date security patches , SSL certificates , proxies configurations ) and make execution's platform complexity/changes transparent to your application 使用系统基础架构(具有最新的安全补丁,SSL证书,代理配置)并使执行的平台复杂性/更改对您的应用程序透明的主要原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM