【发布时间】:2016-08-01 18:42:15
【问题描述】:
我正在使用带有 ftp 的弹簧集成。当我使用int-ftp:inbound-channel-adapter 时,它工作正常,但int-ftp:inbound-streaming-channel-adapter 产生以下错误:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int-ftp:inbound-streaming-channel-adapter
我可能会错过什么?
我的代码的相关部分是
<int-ftp:inbound-streaming-channel-adapter id="ftpInbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
filename-pattern="*.txt"
filename-regex=".*\.txt"
filter="customFilter"
remote-file-separator="/"
comparator="comparator"
remote-directory-expression="'/OUT/SDI402_CARATT_JD'">
<int:poller fixed-rate="1000" />
</int-ftp:inbound-streaming-channel-adapter>
【问题讨论】:
-
我已经清理了问题,但是您的代码示例对于回答您的问题将非常有用。
-
我修复了代码标签,代码使用四个空格。您正在添加剧透标签:)
-
你解决过这个问题吗?如果是这样,解决方案是什么?
-
我使用了 spring-integration-ftp 的 4.3.7.RELEASE 版本。然后它开始正常工作。
标签: ftp spring-integration-sftp