简体   繁体   中英

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.

I've been google over there, but I don't quite find how to solve that. 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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