Spring Batch : How to use spring batch to read file from sftp server and save it into database?

后端 未结 1 1728
北海茫月
北海茫月 2020-12-18 09:20

My current project is based on Spring Batch and Spring integration.

My goal is using Spring Batch to execute job flow steps:

  1. read file from SFTP serve
相关标签:
1条回答
  • 2020-12-18 09:28

    Add a tasklet as the first step; have the tasklet invoke a Spring Integration flow, probably using an sftp outbound gateway to GET the file.

    There's an example of how to use the gateway in the sftp sample.

    The 'transfer start time' would be the time you invoke the gateway.

    0 讨论(0)
提交回复
热议问题