【发布时间】:2017-09-18 13:28:27
【问题描述】:
是否可以为 Spring 集成 SFTP 设置连接超时?
<bean id="defaultSftpSessionFactory"
class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory">
<property name="host" value=""/>
<property name="privateKey" value=""/>
<property name="privateKeyPassphrase" value=""/>
<property name="port" value=""/>
<property name="user" value=""/>
<property name="serverAliveInterval" value="100000"/>
<property name="serverAliveCountMax" value="5"/>
<property name="timeout" value="100000"/>
</bean>
serverAliveInterval、serverAliveCountMax 和 timeout 与连接超时无关。
【问题讨论】:
标签: java spring connection integration sftp