首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用Spring连接没有配置"require_ssl_reuse=NO“的FTP服务器(ubuntu上的vsftpd)

使用Spring连接没有配置"require_ssl_reuse=NO“的FTP服务器(ubuntu上的vsftpd)
EN

Stack Overflow用户
提问于 2016-05-26 02:56:45
回答 1查看 913关注 0票数 0

作为标题,如果我为vsftpd配置"require_ssl_reuse=NO“,下面的配置运行良好。

这是可能的吗?如何配置Spring来连接没有配置"require_ssl_reuse=NO“的vsftpd?

例外:

代码语言:javascript
运行
复制
Caused by: org.springframework.messaging.MessagingException: Failed to write to '/ftp/upload/test.txt.writing' while uploading the file; nested exception is java.io.IOException: Failed to write to '/ftp/upload/test.txt.writing'. Server replied with: 522 SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page

这是我的配置:

代码语言:javascript
运行
复制
<beans:bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpsSessionFactory">
<beans:property name="host" value="202.101.1.106"/>
<beans:property name="port" value="21"/>
<beans:property name="username" value="tom"/>
<beans:property name="password" value="tom"/>
<beans:property name='clientMode' value='2'/>
<beans:property name='protocols' value='TLSv1, SSLv3'/>
</beans:bean>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-26 12:35:10

有关工作,请参见这个问题的答案

子类化会话工厂并重写createClientInstance方法。

可以随意打开一个“改进”JIRA问题,我们可以将它作为一个功能添加到框架中。更好的是,考虑一下出力

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37450791

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档