Java 设置Spring集成SFTP的连接超时
是否可以为Spring integration SFTP设置连接超时Java 设置Spring集成SFTP的连接超时,java,spring,connection,integration,sftp,Java,Spring,Connection,Integration,Sftp,是否可以为Spring integration SFTP设置连接超时 <bean id="defaultSftpSessionFactory" class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory"> <property name="host" value=""/> <property name="privateKey" value=
<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与连接超时相关的内容没有任何区别。会话工厂上公开了几个常见属性(自4.0版以来,现在包括connectTimeout、defaultTimeout和dataTimeout) 见文件